mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-29 07:06:55 +08:00
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 <>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Any, Callable, Deque, TypeVar
|
||||
|
||||
_ArgType = TypeVar("_ArgType")
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class mutex:
|
||||
locked: bool
|
||||
@@ -8,5 +8,5 @@ class mutex:
|
||||
def __init__(self) -> None: ...
|
||||
def test(self) -> bool: ...
|
||||
def testandset(self) -> bool: ...
|
||||
def lock(self, function: Callable[[_ArgType], Any], argument: _ArgType) -> None: ...
|
||||
def lock(self, function: Callable[[_T], Any], argument: _T) -> None: ...
|
||||
def unlock(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user