From 7f810d6440f4cb2a24776dc1b5153850c017bab0 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Fri, 8 Sep 2017 09:23:07 -0700 Subject: [PATCH] Fix code typo. --- pep-0557.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0557.rst b/pep-0557.rst index 38aaf6e21..061073606 100644 --- a/pep-0557.rst +++ b/pep-0557.rst @@ -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