Skip to content

Commit fdbe377

Browse files
committed
Added repr=False to BaseStyle docstring and clarified
1 parent ee84c4a commit fdbe377

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

travertino/src/travertino/style.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ class BaseStyle:
1313
"""A base class for style declarations.
1414
1515
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.
1923
"""
2024

2125
_BASE_PROPERTIES = defaultdict(set)

0 commit comments

Comments
 (0)