mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +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:
@@ -64,7 +64,7 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
|
||||
def signature(self, http_request, string_to_sign): ...
|
||||
def add_auth(self, req, **kwargs): ...
|
||||
|
||||
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler): # type: ignore # argument disparities between base classes
|
||||
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
|
||||
capability: Any
|
||||
region_name: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
@@ -166,7 +166,9 @@ class AWSQueryConnection(AWSAuthConnection):
|
||||
provider: str = ...,
|
||||
) -> None: ...
|
||||
def get_utf8_value(self, value): ...
|
||||
def make_request(self, action, params: Any | None = ..., path: str = ..., verb: str = ..., *args, **kwargs): ... # type: ignore # https://github.com/python/mypy/issues/1237
|
||||
def make_request( # type: ignore[override]
|
||||
self, action, params: Any | None = ..., path: str = ..., verb: str = ..., *args, **kwargs
|
||||
): ...
|
||||
def build_list_params(self, params, items, label): ...
|
||||
def build_complex_list_params(self, params, items, label, names): ...
|
||||
def get_list(self, action, params, markers, path: str = ..., parent: Any | None = ..., verb: str = ...): ...
|
||||
|
||||
@@ -123,4 +123,17 @@ class S3Connection(AWSAuthConnection):
|
||||
def lookup(self, bucket_name, validate: bool = ..., headers: dict[str, str] | None = ...): ...
|
||||
def create_bucket(self, bucket_name, headers: dict[str, str] | None = ..., location: Any = ..., policy: Any | None = ...): ...
|
||||
def delete_bucket(self, bucket, headers: dict[str, str] | None = ...): ...
|
||||
def make_request(self, method, bucket: str = ..., key: str = ..., headers: Any | None = ..., data: str = ..., query_args: Any | None = ..., sender: Any | None = ..., override_num_retries: Any | None = ..., retry_handler: Any | None = ..., *args, **kwargs): ... # type: ignore # https://github.com/python/mypy/issues/1237
|
||||
def make_request( # type: ignore[override]
|
||||
self,
|
||||
method,
|
||||
bucket: str = ...,
|
||||
key: str = ...,
|
||||
headers: Any | None = ...,
|
||||
data: str = ...,
|
||||
query_args: Any | None = ...,
|
||||
sender: Any | None = ...,
|
||||
override_num_retries: Any | None = ...,
|
||||
retry_handler: Any | None = ...,
|
||||
*args,
|
||||
**kwargs,
|
||||
): ...
|
||||
|
||||
Reference in New Issue
Block a user