nvim-treesitter/tests/query/highlights/python/decorators.py

23 lines
385 B
Python
Raw Permalink Normal View History

from dataclasses import dataclass
@dataclass
#^^^^^^^^^ @attribute
class Data:
_foo: str
@property
# ^ @attribute
# ^^^^^^^^ @attribute.builtin
def foo(self) -> str:
return self._foo
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
#^^^^^^ @variable
# ^^^^ @variable.member
# ^^^^^^^^^^^^^^ @attribute
def test_func():
pass