Skip to content

Commit

Permalink
Add mixins module to asyncio (#6789)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jan 25, 2022
1 parent fab2a47 commit bfda5c6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand Down
7 changes: 7 additions & 0 deletions stdlib/asyncio/mixins.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import threading
from typing import NoReturn

_global_lock: threading.Lock

class _LoopBoundMixin:
def __init__(self, *, loop: NoReturn = ...) -> None: ...
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py36.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py37.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfda5c6

Please sign in to comment.