Unpin Python micro versions used by stubtest (#7619)

Add new `asyncio` method, fix allowlists
This commit is contained in:
Alex Waygood
2022-04-13 22:07:01 +02:00
committed by GitHub
parent ce88976c0d
commit a1b1b95f67
4 changed files with 6 additions and 7 deletions

View File

@@ -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:

View File

@@ -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: ...

View File

@@ -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__

View File

@@ -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