@@ -145,7 +145,7 @@ def __new__(
145
145
return super ().__new__ (cls , login , password , encoding )
146
146
147
147
@classmethod
148
- def decode (cls , auth_header : str , encoding : str = "latin1" ) -> "BasicAuth" : # type: ignore[misc]
148
+ def decode (cls , auth_header : str , encoding : str = "latin1" ) -> "BasicAuth" :
149
149
"""Create a BasicAuth object from an Authorization HTTP header."""
150
150
try :
151
151
auth_type , encoded_credentials = auth_header .split (" " , 1 )
@@ -174,7 +174,7 @@ def decode(cls, auth_header: str, encoding: str = "latin1") -> "BasicAuth": # t
174
174
return cls (username , password , encoding = encoding )
175
175
176
176
@classmethod
177
- def from_url (cls , url : URL , * , encoding : str = "latin1" ) -> Optional ["BasicAuth" ]: # type: ignore[misc]
177
+ def from_url (cls , url : URL , * , encoding : str = "latin1" ) -> Optional ["BasicAuth" ]:
178
178
"""Create BasicAuth from url."""
179
179
if not isinstance (url , URL ):
180
180
raise TypeError ("url should be yarl.URL instance" )
@@ -245,7 +245,7 @@ def netrc_from_env() -> Optional[netrc.netrc]:
245
245
246
246
247
247
@frozen_dataclass_decorator
248
- class ProxyInfo : # type: ignore[misc]
248
+ class ProxyInfo :
249
249
proxy : URL
250
250
proxy_auth : Optional [BasicAuth ]
251
251
@@ -884,7 +884,7 @@ def __init_subclass__(cls) -> None:
884
884
def __getitem__ (self , key : AppKey [_T ]) -> _T : ...
885
885
886
886
@overload
887
- def __getitem__ (self , key : str ) -> Any : ... # type: ignore[misc]
887
+ def __getitem__ (self , key : str ) -> Any : ...
888
888
889
889
def __getitem__ (self , key : Union [str , AppKey [_T ]]) -> Any :
890
890
for mapping in self ._maps :
@@ -901,7 +901,7 @@ def get(self, key: AppKey[_T], default: _S) -> Union[_T, _S]: ...
901
901
def get (self , key : AppKey [_T ], default : None = ...) -> Optional [_T ]: ...
902
902
903
903
@overload
904
- def get (self , key : str , default : Any = ...) -> Any : ... # type: ignore[misc]
904
+ def get (self , key : str , default : Any = ...) -> Any : ...
905
905
906
906
def get (self , key : Union [str , AppKey [_T ]], default : Any = None ) -> Any :
907
907
try :
0 commit comments