This ain't Markdown
This commit is contained in:
parent
d9ed03a751
commit
f329fb6105
|
@ -85,7 +85,7 @@ Never again violate the `single responsibility principle <https://en.wikipedia.o
|
|||
**Hate type annotations**!?
|
||||
No problem!
|
||||
With ``attrs`` types are entirely **optional**.
|
||||
Simply assign `field()` to the attributes instead of annotating them with types.
|
||||
Simply assign ``field()`` to the attributes instead of annotating them with types.
|
||||
|
||||
In case you're wondering: this example uses ``attrs``'s `modern APIs <https://www.attrs.org/en/stable/api.html#next-generation-apis>`_ that have been introduced in version 20.1.0.
|
||||
The classic APIs (``@attr.s``, ``attr.ib``, ``@attr.attrs``, ``attr.attrib``, and ``attr.dataclass``) will remain indefinitely.
|
||||
|
|
Loading…
Reference in New Issue