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

View File

@@ -1,7 +1,7 @@
from _typeshed import Incomplete, Self
from _typeshed import Incomplete
from collections.abc import Callable, Iterable
from typing import Any, Generic, TypeVar, overload
from typing_extensions import ParamSpec
from typing_extensions import ParamSpec, Self
from .config import Config
from .context import Context
@@ -105,7 +105,7 @@ class Call:
kwargs: dict[str, Any] | None = ...,
) -> None: ...
def __getattr__(self, name: str) -> Any: ...
def __deepcopy__(self: Self, memo: Any) -> Self: ...
def __deepcopy__(self, memo: Any) -> Self: ...
def __eq__(self, other: Call) -> bool: ... # type: ignore[override]
def make_context(self, config: Config) -> Context: ...
def clone_data(self): ...