Skip to content

Commit 5d0e6f8

Browse files
authored
Fix code block on NamedTuple doc (#2103)
Update namedtuples.rst Fix a code block that wasn't being rendered properly
1 parent a9173dc commit 5d0e6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/namedtuples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Type checkers should support the class syntax::
2121
units: str = "meters"
2222

2323
Fields must be annotated attributes - methods and un-annotated attributes are not
24-
considered fields. Field names may not start with an underscore.
24+
considered fields. Field names may not start with an underscore::
2525

2626
class MyTuple(NamedTuple):
2727
x1 = 1 # Not a field

0 commit comments

Comments
 (0)