diff --git a/docs/spec/namedtuples.rst b/docs/spec/namedtuples.rst index 936d2fa7..5ccf9d5b 100644 --- a/docs/spec/namedtuples.rst +++ b/docs/spec/namedtuples.rst @@ -21,7 +21,7 @@ Type checkers should support the class syntax:: units: str = "meters" Fields must be annotated attributes - methods and un-annotated attributes are not -considered fields. Field names may not start with an underscore. +considered fields. Field names may not start with an underscore:: class MyTuple(NamedTuple): x1 = 1 # Not a field