Skip to content

Commit caf24b4

Browse files
docs: Fix "Final[42]" (python#532)
This fails at runtime in older versions, and in any case it is an invalid type. Fixes python#531
1 parent b931f1b commit caf24b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Example usage::
133133
False
134134
>>> is_literal(get_origin(typing.Literal[42]))
135135
True
136-
>>> is_literal(get_origin(typing_extensions.Final[42]))
136+
>>> is_literal(get_origin(typing_extensions.Final[int]))
137137
False
138138

139139
Python version support

0 commit comments

Comments
 (0)