Skip to content

Commit 76774fa

Browse files
author
Guido van Rossum
committed
Fix example (add 'class A:')
1 parent 55dadfc commit 76774fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/source/additional_features.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ That enables this to work:
5050
import attr
5151
from typing import Dict
5252
@attr.s(auto_attribs=True)
53+
class A:
5354
one: int = attr.ib(8)
5455
two: Dict[str, str] = attr.Factory(dict)
5556
bad: str = attr.ib(16) # Error: can't assign int to str

0 commit comments

Comments
 (0)