diff --git a/stdlib/VERSIONS b/stdlib/VERSIONS index 7422882699c8..2e2f593b9919 100644 --- a/stdlib/VERSIONS +++ b/stdlib/VERSIONS @@ -62,6 +62,7 @@ array: 2.7- ast: 2.7- asynchat: 2.7- asyncio: 3.4- +asyncio.mixins: 3.10- asyncio.compat: 3.4-3.6 asyncio.exceptions: 3.8- asyncio.format_helpers: 3.7- diff --git a/stdlib/asyncio/mixins.pyi b/stdlib/asyncio/mixins.pyi new file mode 100644 index 000000000000..4c11865c8968 --- /dev/null +++ b/stdlib/asyncio/mixins.pyi @@ -0,0 +1,7 @@ +import threading +from typing import NoReturn + +_global_lock: threading.Lock + +class _LoopBoundMixin: + def __init__(self, *, loop: NoReturn = ...) -> None: ... diff --git a/tests/stubtest_allowlists/py36.txt b/tests/stubtest_allowlists/py36.txt index 790cad697627..60849a3a1965 100644 --- a/tests/stubtest_allowlists/py36.txt +++ b/tests/stubtest_allowlists/py36.txt @@ -12,6 +12,7 @@ asyncio.runners # Added in Python 3.7 asyncio.staggered # Added in Python 3.8 asyncio.threads # Added in Python 3.9 asyncio.trsock # Added in Python 3.8 +asyncio.mixins # Added in Python 3.10 builtins.str.maketrans cmath.log collections.AsyncGenerator.ag_await diff --git a/tests/stubtest_allowlists/py37.txt b/tests/stubtest_allowlists/py37.txt index 51212c79328c..baf49d88737b 100644 --- a/tests/stubtest_allowlists/py37.txt +++ b/tests/stubtest_allowlists/py37.txt @@ -12,6 +12,7 @@ asyncio.futures.Future._callbacks # Usually initialized from c object asyncio.staggered # Added in Python 3.8 asyncio.threads # Added in Python 3.9 asyncio.trsock # Added in Python 3.8 +asyncio.mixins # Added in Python 3.10 builtins.dict.get builtins.str.maketrans cmath.log diff --git a/tests/stubtest_allowlists/py38.txt b/tests/stubtest_allowlists/py38.txt index c19cc00ddb14..cb4d24043285 100644 --- a/tests/stubtest_allowlists/py38.txt +++ b/tests/stubtest_allowlists/py38.txt @@ -17,6 +17,7 @@ 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.threads # Added in Python 3.9 +asyncio.mixins # Added in Python 3.10 builtins.dict.get collections.AsyncGenerator.ag_await collections.AsyncGenerator.ag_code diff --git a/tests/stubtest_allowlists/py39.txt b/tests/stubtest_allowlists/py39.txt index 746a46a6a65b..3ff106f7071f 100644 --- a/tests/stubtest_allowlists/py39.txt +++ b/tests/stubtest_allowlists/py39.txt @@ -19,6 +19,7 @@ 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.mixins # Added in Python 3.10 builtins.dict.get collections.AsyncGenerator.ag_await collections.AsyncGenerator.ag_code