Skip to content

Commit e8c2e5b

Browse files
authored
remove redundant inheritance from Iterator for typing.IO (#12870)
1 parent b62579b commit e8c2e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/typing.pyi

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

0 commit comments

Comments
 (0)