Use typing_extensions.Self instead of _typeshed.Self (#9702)

This commit is contained in:
Alex Waygood
2023-02-15 11:32:43 +01:00
committed by GitHub
parent 8cd6d81f15
commit 7180d0223b
140 changed files with 597 additions and 610 deletions
@@ -1,9 +1,8 @@
import threading
from _typeshed import Self
from collections.abc import Iterator
from types import TracebackType
from typing import Protocol
from typing_extensions import Literal
from typing_extensions import Literal, Self
__version__: str
@@ -24,7 +23,7 @@ class Spinner:
def start(self) -> None: ...
def stop(self) -> None: ...
def init_spin(self) -> None: ...
def __enter__(self: Self) -> Self: ...
def __enter__(self) -> Self: ...
def __exit__(
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
) -> Literal[False]: ...