From b74a00bcf94e0c6696fbe323890229b29d24fbc1 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 20 Feb 2025 20:09:50 -0800 Subject: [PATCH] docs: Fix "Final[42]" This fails at runtime in older versions, and in any case it is an invalid type. Fixes #531 --- doc/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/index.rst b/doc/index.rst index ea5d776d..d150c7db 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -133,7 +133,7 @@ Example usage:: False >>> is_literal(get_origin(typing.Literal[42])) True - >>> is_literal(get_origin(typing_extensions.Final[42])) + >>> is_literal(get_origin(typing_extensions.Final[int])) False Python version support