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
+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import Self
from collections.abc import Mapping
from fractions import Fraction
from typing import Any, TypeVar, overload
from typing_extensions import Self
_T = TypeVar("_T")
@@ -14,7 +14,7 @@ def make_string_uc(seq: str | list[int]) -> str: ...
def get_gps_coords(tags: Mapping[str, Any]) -> tuple[float, float]: ...
class Ratio(Fraction):
def __new__(cls: type[Self], numerator: int = ..., denominator: int | None = ...) -> Self: ...
def __new__(cls, numerator: int = ..., denominator: int | None = ...) -> Self: ...
@property
def num(self) -> int: ...
@property