io.IOBase: correct metaclass (#8468)

`io.IOBase` has `ABCMeta` as the metaclass at runtime: 75a6441718/Lib/io.py (L71)

But not currently in the stub. This is causing an unexpected stubtest failure for a `urllib3` PR here: https://github.com/python/typeshed/runs/7633083101?check_suite_focus=true
This commit is contained in:
Alex Waygood
2022-08-02 17:20:07 +01:00
committed by GitHub
parent df4618ef2d
commit 1dc1c91429

View File

@@ -1,3 +1,4 @@
import abc
import builtins
import codecs
import sys
@@ -47,7 +48,7 @@ BlockingIOError = builtins.BlockingIOError
class UnsupportedOperation(OSError, ValueError): ...
class IOBase:
class IOBase(metaclass=abc.ABCMeta):
def __iter__(self) -> Iterator[bytes]: ...
def __next__(self) -> bytes: ...
def __enter__(self: Self) -> Self: ...