mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
1 parent
10086c06a1
commit
9ed39d8796
98 files changed
+627
-654
No files matched your search
@@ -1,6 +1,5 @@
|
||||
from _typeshed import Self
|
||||
from types import TracebackType
|
||||
from typing_extensions import final
|
||||
from typing_extensions import Self, final
|
||||
|
||||
__all__ = ("Timeout", "timeout", "timeout_at")
|
||||
|
||||
@@ -10,7 +9,7 @@ class Timeout:
|
||||
def when(self) -> float | None: ...
|
||||
def reschedule(self, when: float | None) -> None: ...
|
||||
def expired(self) -> bool: ...
|
||||
async def __aenter__(self: Self) -> Self: ...
|
||||
async def __aenter__(self) -> Self: ...
|
||||
async def __aexit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user