Skip to content

Commit 6041c28

Browse files
committed
Fix allowlists
1 parent bee4f2d commit 6041c28

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

tests/stubtest_allowlists/py310.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ xml.etree.ElementTree.XMLParser.__init__ # Defined in C so has general signatur
106106
xml.etree.cElementTree.XMLParser.__init__ # Defined in C so has general signature
107107

108108
# positional-only complaints caused by differences between typing aliases and the "real" classes in the stdlib
109-
_collections_abc.AsyncGenerator.asend # is also "async def" at runtime, but sync in the stub (see discussion in #7475)
110-
_collections_abc.AsyncGenerator.athrow # is also "async def" at runtime, but sync in the stub (see discussion in #7475)
111109
_collections_abc.Coroutine.send
112110
_collections_abc.Coroutine.throw
113111
_collections_abc.Generator.send

tests/stubtest_allowlists/py36.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ asyncio.locks._ContextManagerMixin.__exit__ # Always raises; deliberately omitt
1111
builtins.float.__setformat__ # Internal method for CPython test suite
1212
builtins.str.maketrans
1313
cmath.log
14+
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
15+
collections.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
16+
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7475
17+
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7475
18+
collections.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7475
1419
collections.AsyncGenerator.ag_await
1520
collections.AsyncGenerator.ag_code
1621
collections.AsyncGenerator.ag_frame

tests/stubtest_allowlists/py37.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ builtins.dict.get
1515
builtins.float.__set_format__ # Internal method for CPython test suite
1616
builtins.str.maketrans
1717
cmath.log
18+
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
19+
collections.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
20+
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7475
21+
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7475
22+
collections.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7475
1823
collections.AsyncGenerator.ag_await
1924
collections.AsyncGenerator.ag_code
2025
collections.AsyncGenerator.ag_frame

tests/stubtest_allowlists/py38.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ asyncio.locks._ContextManagerMixin.__enter__ # Always raises; deliberately omit
1919
asyncio.locks._ContextManagerMixin.__exit__ # Always raises; deliberately omitted from the stub
2020
builtins.dict.get
2121
builtins.float.__set_format__ # Internal method for CPython test suite
22+
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
23+
collections.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
24+
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7475
25+
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7475
26+
collections.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7475
2227
collections.AsyncGenerator.ag_await
2328
collections.AsyncGenerator.ag_code
2429
collections.AsyncGenerator.ag_frame

tests/stubtest_allowlists/py39.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ asyncio.futures.Future.__init__ # Usually initialized from c object
2121
asyncio.futures.Future._callbacks # Usually initialized from c object
2222
builtins.dict.get
2323
builtins.float.__set_format__ # Internal method for CPython test suite
24+
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
25+
collections.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
26+
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7475
27+
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7475
28+
collections.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7475
2429
collections.AsyncGenerator.ag_await
2530
collections.AsyncGenerator.ag_code
2631
collections.AsyncGenerator.ag_frame

tests/stubtest_allowlists/py3_common.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ xml.parsers.expat.expat_CAPI
246246
# ==========
247247
# Allowlist entries that cannot or should not be fixed
248248
# ==========
249+
_collections_abc.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
250+
_collections_abc.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7475. Pos-only differences also.
249251
_collections_abc.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7475
250252
_collections_abc.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7475
251253
_collections_abc.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7475

0 commit comments

Comments
 (0)