mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add __name__ & __qualname__ to Coroutine (#4404)
This commit is contained in:
@@ -196,6 +196,8 @@ class Awaitable(Protocol[_T_co]):
|
||||
def __await__(self) -> Generator[Any, None, _T_co]: ...
|
||||
|
||||
class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]):
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
@property
|
||||
def cr_await(self) -> Optional[Any]: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user