diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc8c6085d..7f14fea35 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -98,7 +98,7 @@ jobs: os: ["ubuntu-latest", "windows-latest", "macos-10.15"] # Python 3.9 and 3.10 temporarily pinned due to incompatibilities # between micro versions. - python-version: ["3.6", "3.7", "3.8", "3.9.10", "3.10.2"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] fail-fast: false steps: diff --git a/stdlib/asyncio/transports.pyi b/stdlib/asyncio/transports.pyi index c24ded49c..90e54b547 100644 --- a/stdlib/asyncio/transports.pyi +++ b/stdlib/asyncio/transports.pyi @@ -27,6 +27,9 @@ class ReadTransport(BaseTransport): class WriteTransport(BaseTransport): def set_write_buffer_limits(self, high: int | None = ..., low: int | None = ...) -> None: ... def get_write_buffer_size(self) -> int: ... + if sys.version_info >= (3, 9): + def get_write_buffer_limits(self) -> tuple[int, int]: ... + def write(self, data: Any) -> None: ... def writelines(self, list_of_data: list[Any]) -> None: ... def write_eof(self) -> None: ... diff --git a/tests/stubtest_allowlists/py310.txt b/tests/stubtest_allowlists/py310.txt index 994cd25a0..cfd8c6f14 100644 --- a/tests/stubtest_allowlists/py310.txt +++ b/tests/stubtest_allowlists/py310.txt @@ -33,14 +33,12 @@ ast.Index.__new__ ast.NameConstant.__new__ ast.Num.__new__ ast.Str.__new__ -asyncio.base_events.__all__ # Fixed in 3.10.3 asyncio.Future.__init__ # Usually initialized from c object asyncio.Future._callbacks # Usually initialized from c object asyncio.futures.Future.__init__ # Usually initialized from c object asyncio.futures.Future._callbacks # Usually initialized from c object -asyncio.Server # Fixed in 3.10.3 builtins.dict.get -builtins.float.__set_format__ # Internal method for CPython test suite +builtins.float.__setformat__ # Internal method for CPython test suite builtins.property.__set_name__ # Doesn't actually exist contextvars.Context.__init__ # Default C __init__ signature is wrong contextlib.AbstractAsyncContextManager.__class_getitem__ diff --git a/tests/stubtest_allowlists/py39.txt b/tests/stubtest_allowlists/py39.txt index f09e5171a..47992c880 100644 --- a/tests/stubtest_allowlists/py39.txt +++ b/tests/stubtest_allowlists/py39.txt @@ -15,14 +15,12 @@ ast.Index.__new__ ast.NameConstant.__new__ ast.Num.__new__ ast.Str.__new__ -asyncio.base_events.__all__ # Fixed in 3.9.11 asyncio.Future.__init__ # Usually initialized from c object asyncio.Future._callbacks # Usually initialized from c object asyncio.futures.Future.__init__ # Usually initialized from c object asyncio.futures.Future._callbacks # Usually initialized from c object -asyncio.Server # Fixed in 3.9.11 builtins.dict.get -builtins.float.__set_format__ # Internal method for CPython test suite +builtins.float.__setformat__ # Internal method for CPython test suite collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also. collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7491 collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7491