mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Correct str.maketrans and collections.UserString.maketrans (#9611)
This commit is contained in:
@@ -191,12 +191,7 @@ class UserString(Sequence[UserString]):
|
||||
def ljust(self: Self, width: int, *args: Any) -> Self: ...
|
||||
def lower(self: Self) -> Self: ...
|
||||
def lstrip(self: Self, chars: str | None = None) -> Self: ...
|
||||
@staticmethod
|
||||
@overload
|
||||
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 = ...) -> dict[int, int | None]: ...
|
||||
maketrans = str.maketrans
|
||||
def partition(self, sep: str) -> tuple[str, str, str]: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def removeprefix(self: Self, __prefix: str | UserString) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user