mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Unpin Python micro versions used by stubtest (#7619)
Add new `asyncio` method, fix allowlists
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user