mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
23 lines
385 B
Python
23 lines
385 B
Python
|
|
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
|
||
|
|
|