mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 04:04:25 +08:00
remove "Union[str, str]" (#4838)
I grepped and didn't find any other instances of redundant unions like this one.
This commit is contained in:
@@ -382,7 +382,7 @@ class str(Sequence[str]):
|
||||
def maketrans(__x: str, __y: str, __z: Optional[str] = ...) -> Dict[int, Union[int, None]]: ...
|
||||
def __add__(self, s: str) -> str: ...
|
||||
# Incompatible with Sequence.__contains__
|
||||
def __contains__(self, o: Union[str, str]) -> bool: ... # type: ignore
|
||||
def __contains__(self, o: str) -> bool: ... # type: ignore
|
||||
def __eq__(self, x: object) -> bool: ...
|
||||
def __ge__(self, x: str) -> bool: ...
|
||||
def __getitem__(self, i: Union[int, slice]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user