mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Correct str.maketrans and collections.UserString.maketrans (#9611)
This commit is contained in:
@@ -551,7 +551,10 @@ class str(Sequence[str]):
|
||||
def maketrans(__x: dict[int, _T] | dict[str, _T] | dict[str | int, _T]) -> dict[int, _T]: ...
|
||||
@staticmethod
|
||||
@overload
|
||||
def maketrans(__x: str, __y: str, __z: str | None = ...) -> dict[int, int | None]: ...
|
||||
def maketrans(__x: str, __y: str) -> dict[int, int]: ...
|
||||
@staticmethod
|
||||
@overload
|
||||
def maketrans(__x: str, __y: str, __z: str) -> dict[int, int | None]: ...
|
||||
@overload
|
||||
def __add__(self: LiteralString, __s: LiteralString) -> LiteralString: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user