Skip to content

Commit bfda5c6

Browse files
authored
Add mixins module to asyncio (#6789)
1 parent fab2a47 commit bfda5c6

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

stdlib/VERSIONS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ array: 2.7-
6262
ast: 2.7-
6363
asynchat: 2.7-
6464
asyncio: 3.4-
65+
asyncio.mixins: 3.10-
6566
asyncio.compat: 3.4-3.6
6667
asyncio.exceptions: 3.8-
6768
asyncio.format_helpers: 3.7-

stdlib/asyncio/mixins.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import threading
2+
from typing import NoReturn
3+
4+
_global_lock: threading.Lock
5+
6+
class _LoopBoundMixin:
7+
def __init__(self, *, loop: NoReturn = ...) -> None: ...

tests/stubtest_allowlists/py36.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ asyncio.runners # Added in Python 3.7
1212
asyncio.staggered # Added in Python 3.8
1313
asyncio.threads # Added in Python 3.9
1414
asyncio.trsock # Added in Python 3.8
15+
asyncio.mixins # Added in Python 3.10
1516
builtins.str.maketrans
1617
cmath.log
1718
collections.AsyncGenerator.ag_await

tests/stubtest_allowlists/py37.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ asyncio.futures.Future._callbacks # Usually initialized from c object
1212
asyncio.staggered # Added in Python 3.8
1313
asyncio.threads # Added in Python 3.9
1414
asyncio.trsock # Added in Python 3.8
15+
asyncio.mixins # Added in Python 3.10
1516
builtins.dict.get
1617
builtins.str.maketrans
1718
cmath.log

tests/stubtest_allowlists/py38.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ asyncio.Future._callbacks # Usually initialized from c object
1717
asyncio.futures.Future.__init__ # Usually initialized from c object
1818
asyncio.futures.Future._callbacks # Usually initialized from c object
1919
asyncio.threads # Added in Python 3.9
20+
asyncio.mixins # Added in Python 3.10
2021
builtins.dict.get
2122
collections.AsyncGenerator.ag_await
2223
collections.AsyncGenerator.ag_code

tests/stubtest_allowlists/py39.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ asyncio.Future.__init__ # Usually initialized from c object
1919
asyncio.Future._callbacks # Usually initialized from c object
2020
asyncio.futures.Future.__init__ # Usually initialized from c object
2121
asyncio.futures.Future._callbacks # Usually initialized from c object
22+
asyncio.mixins # Added in Python 3.10
2223
builtins.dict.get
2324
collections.AsyncGenerator.ag_await
2425
collections.AsyncGenerator.ag_code

0 commit comments

Comments
 (0)