Fix code typo.

This commit is contained in:
Eric V. Smith 2017-09-08 09:23:07 -07:00
parent 6be5d81449
commit 7f810d6440
1 changed files with 2 additions and 2 deletions

View File

@ -212,8 +212,8 @@ Python syntax::
@dataclass
class C:
int a # 'a' has no default value
int b = 0 # assign a default value for 'b'
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
For common and simple use cases, no other functionality is required.
There are, however, some Data Class features that require additional