File tree 1 file changed +7
-3
lines changed
travertino/src/travertino
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,13 @@ class BaseStyle:
13
13
"""A base class for style declarations.
14
14
15
15
Exposes a dict-like interface. Designed for subclasses to be decorated
16
- with @dataclass(kw_only=True), which most IDEs should be able to interpret and
17
- provide autocompletion of argument names. On Python < 3.10, init=False can be used
18
- to still get the keyword-only behavior from the included __init__.
16
+ with @dataclass(kw_only=True, repr=False).
17
+
18
+ The kw_only parameter was added in Python 3.10; for 3.9, init=False can be used
19
+ instead to still get the keyword-only behavior from the included __init__.
20
+
21
+ Most IDEs should see the dataclass decorator and provide autocompletion / type hints
22
+ for parameters to the constructor.
19
23
"""
20
24
21
25
_BASE_PROPERTIES = defaultdict (set )
You can’t perform that action at this time.
0 commit comments