diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index be0831588e158d..c300c4257f0e81 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1552,7 +1552,7 @@ These are not used in annotations. They are building blocks for creating generic .. data:: AnyStr - ``AnyStr`` is a :ref:`constrained type variable <_typing-constrained-typevar>` defined as + ``AnyStr`` is a :ref:`constrained type variable ` defined as ``AnyStr = TypeVar('AnyStr', str, bytes)``. It is meant to be used for functions that may accept any kind of string