mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 06:19:47 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user