Files
typeshed/stdlib/2/mutex.pyi
Shantanu 484c014665 Suffix T to type variable names (#4898)
* _MessageType to _MessageT

* _default to _T

* _TConnection to _ConnectionT, _TListener to _ListenerT

* _Number to _NumberT

* _MessageVar to _MessageT

* _Type to _TypeT

* _ArgType to _T

* _Ch to _CharT

Co-authored-by: hauntsaninja <>
2021-01-04 09:03:32 +01:00

13 lines
339 B
Python

from typing import Any, Callable, Deque, TypeVar
_T = TypeVar("_T")
class mutex:
locked: bool
queue: Deque[Any]
def __init__(self) -> None: ...
def test(self) -> bool: ...
def testandset(self) -> bool: ...
def lock(self, function: Callable[[_T], Any], argument: _T) -> None: ...
def unlock(self) -> None: ...