diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ef6016d45c1f8bc..76d37b1f304daaf 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1810,7 +1810,7 @@ without the dedicated syntax, as documented below. However, if desired, reusable type variables can also be constructed manually, like so:: T = TypeVar('T') # Can be anything - S = TypeVar('S', bound=str) # Can be any subtype of str + S = TypeVar('S', bound=str) # Can be str or any subtype of str (including str itself) A = TypeVar('A', str, bytes) # Must be exactly str or bytes Type variables exist primarily for the benefit of static type