We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2602adc commit 09a0f41Copy full SHA for 09a0f41
stdlib/typing.pyi
@@ -648,6 +648,7 @@ class Container(Protocol[_T_contra]):
648
649
@runtime_checkable
650
class Collection(Iterable[_T_co], Container[Any], Protocol[_T_co]):
651
+ # Note: need to use Container[Any] instead of Container[_T_co] to ensure covariance.
652
# Implement Sized (but don't have it as a base class).
653
@abstractmethod
654
def __len__(self) -> int: ...
0 commit comments