remove redundant inheritance from Iterator for typing.IO (#12870)

This commit is contained in:
Stephen Morton
2024-10-21 17:29:03 -07:00
committed by GitHub
parent b62579b0d2
commit e8c2e5bb20

View File

@@ -760,7 +760,7 @@ TYPE_CHECKING: bool
# In stubs, the arguments of the IO class are marked as positional-only.
# This differs from runtime, but better reflects the fact that in reality
# classes deriving from IO use different names for the arguments.
class IO(Iterator[AnyStr]):
class IO(Generic[AnyStr]):
# At runtime these are all abstract properties,
# but making them abstract in the stub is hugely disruptive, for not much gain.
# See #8726