diff --git a/docs/source/more_types.rst b/docs/source/more_types.rst index cff1234b39d39..2d99cdc7bef68 100644 --- a/docs/source/more_types.rst +++ b/docs/source/more_types.rst @@ -614,7 +614,7 @@ argument is itself generic: .. code-block:: python - T = TypeVar('T') + T = TypeVar('T', covariant=True) S = TypeVar('S') class Storage(Generic[T]):