We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62579b commit e8c2e5bCopy full SHA for e8c2e5b
stdlib/typing.pyi
@@ -760,7 +760,7 @@ TYPE_CHECKING: bool
760
# In stubs, the arguments of the IO class are marked as positional-only.
761
# This differs from runtime, but better reflects the fact that in reality
762
# classes deriving from IO use different names for the arguments.
763
-class IO(Iterator[AnyStr]):
+class IO(Generic[AnyStr]):
764
# At runtime these are all abstract properties,
765
# but making them abstract in the stub is hugely disruptive, for not much gain.
766
# See #8726
0 commit comments