Merge branch 'master' of github.com:python/peps

This commit is contained in:
Antoine Pitrou 2017-09-08 19:11:29 +02:00
commit 2c88e2d062
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