aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/python/functions.py
blob: 7284d3fccdee3d839c480bb248940bced15848f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def func() -> None: ...

_ = func()
#   ^^^^ @function.call

"{}".format(1)
#    ^^^^^^ @function.method.call

class Foo:
    def method(self) -> None: ...
#              ^^^^ @variable.builtin

    @classmethod
    def clsmethod(cls) -> None: ...
#                 ^^^ @variable.builtin

Foo().method()
#     ^^^^^^ @function.method.call