diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index c909b8bad6d726..2d1007897b1ec4 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