diff --git a/docs/source/generics.rst b/docs/source/generics.rst index 4b97a10d1f81..894bd1a07a79 100644 --- a/docs/source/generics.rst +++ b/docs/source/generics.rst @@ -223,6 +223,9 @@ example we use the same type variable in two generic functions: def last(seq: Sequence[T]) -> T: return seq[-1] +A variable cannot have a type variable in its type unless the type +variable is bound in a containing generic class or function. + .. _generic-methods-and-generic-self: Generic methods and generic self