mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 22:11:54 +08:00
Add mypy error codes to type: ignores, remove unused ignores (#7504)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -6,9 +6,9 @@ from typing_extensions import Literal
|
||||
# Iterable[T], so that Union[List[T], Literal[""]] could be used as a return
|
||||
# type. But because this only works when T is str, we need Sequence[T] instead.
|
||||
@overload
|
||||
def commonprefix(m: Sequence[str]) -> str | Literal[""]: ... # type: ignore
|
||||
def commonprefix(m: Sequence[str]) -> str | Literal[""]: ... # type: ignore[misc]
|
||||
@overload
|
||||
def commonprefix(m: Sequence[Text]) -> Text: ... # type: ignore
|
||||
def commonprefix(m: Sequence[Text]) -> Text: ...
|
||||
@overload
|
||||
def commonprefix(m: Sequence[list[SupportsLessThanT]]) -> Sequence[SupportsLessThanT]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user