We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 888299f commit 4e248ffCopy full SHA for 4e248ff
pep-0484.txt
@@ -397,6 +397,15 @@ You can use multiple inheritance with ``Generic``::
397
class LinkedList(Sized, Generic[T]):
398
...
399
400
+Subclassing a generic class without specifying type parameters assumes
401
+``Any`` for each position. In the following example, ``MyIterable``
402
+is not generic but implicitly inherits from ``Iterable[Any]``:
403
+
404
+ from typing import Iterable
405
406
+ class MyIterable(Iterable): # Same as Iterable[Any]
407
+ ...
408
409
410
Arbitrary generic types as base classes
411
---------------------------------------
0 commit comments