blob: 278e4e311bd58cd0f565edc40bc29332dce50a50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
|