mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 12:56:51 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
@@ -11,4 +11,4 @@ class JSON(JSONCommands):
|
||||
def __init__(self, client, version: Any | None = ..., decoder=..., encoder=...) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Any | None = ...) -> Pipeline: ...
|
||||
|
||||
class Pipeline(JSONCommands, ClientPipeline): ... # type: ignore
|
||||
class Pipeline(JSONCommands, ClientPipeline): ... # type: ignore[misc]
|
||||
|
||||
@@ -10,4 +10,4 @@ class TimeSeries(TimeSeriesCommands):
|
||||
def __init__(self, client: Any | None = ..., **kwargs) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Any | None = ...) -> Pipeline: ...
|
||||
|
||||
class Pipeline(TimeSeriesCommands, ClientPipeline): ... # type: ignore
|
||||
class Pipeline(TimeSeriesCommands, ClientPipeline): ... # type: ignore[misc]
|
||||
|
||||
@@ -14,7 +14,7 @@ def from_url(url: str, *, db: int = ..., decode_responses: Literal[True], **kwar
|
||||
def from_url(url: str, *, db: int = ..., decode_responses: Literal[False] = ..., **kwargs: Any) -> Redis[bytes]: ...
|
||||
def pipeline(redis_obj: Redis[_StrType]) -> AbstractContextManager[Pipeline[_StrType]]: ...
|
||||
@overload
|
||||
def str_if_bytes(value: bytes) -> str: ... # type: ignore
|
||||
def str_if_bytes(value: bytes) -> str: ... # type: ignore[misc]
|
||||
@overload
|
||||
def str_if_bytes(value: _T) -> _T: ...
|
||||
def safe_str(value: object) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user