From 60202b0d3fc13a82591fd62e0f5931278f3e9941 Mon Sep 17 00:00:00 2001 From: Danny Yang Date: Thu, 16 Oct 2025 11:00:21 -0400 Subject: [PATCH] Update namedtuples.rst Fix a code block that wasn't being rendered properly --- docs/spec/namedtuples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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