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
+3 -3
View File
@@ -1,8 +1,8 @@
from _typeshed import Incomplete, Self, SupportsRichComparison
from _typeshed import Incomplete, SupportsRichComparison
from collections import deque
from collections.abc import Callable, Container, Iterable, Sequence
from typing import Any
from typing_extensions import TypeAlias
from typing_extensions import Self, TypeAlias
from jsonschema import _utils, protocols
from jsonschema._types import TypeChecker
@@ -40,7 +40,7 @@ class _Error(Exception):
type_checker: _utils.Unset | TypeChecker = ...,
) -> None: ...
@classmethod
def create_from(cls: type[Self], other: _Error) -> Self: ...
def create_from(cls, other: _Error) -> Self: ...
@property
def absolute_path(self) -> Sequence[str | int]: ...
@property