@@ -97,7 +97,7 @@ def raise_with_traceback(exception: Callable, *args: Any, message: str = "", **k
97
97
exc_msg = "{}, {}: {}" .format (message , exc_type .__name__ , exc_value )
98
98
error = exception (exc_msg , * args , ** kwargs )
99
99
try :
100
- raise error .with_traceback (exc_traceback ) # pylint: disable=raise-missing-from
100
+ raise error .with_traceback (exc_traceback )
101
101
except AttributeError : # Python 2
102
102
error .__traceback__ = exc_traceback
103
103
raise error # pylint: disable=raise-missing-from
@@ -150,7 +150,9 @@ def get(self, key: KeyType) -> Optional[ValueType]:
150
150
151
151
152
152
def map_error (
153
- status_code : int , response : _HttpResponseCommonAPI , error_map : Mapping [int , Type [HttpResponseError ]]
153
+ status_code : int ,
154
+ response : _HttpResponseCommonAPI ,
155
+ error_map : Mapping [int , Type [HttpResponseError ]],
154
156
) -> None :
155
157
if not error_map :
156
158
return
@@ -309,7 +311,7 @@ def raise_with_traceback(self) -> None:
309
311
This method is deprecated as we don't support Python 2 anymore. Use raise/from instead.
310
312
"""
311
313
try :
312
- raise super (AzureError , self ).with_traceback (self .exc_traceback ) # pylint: disable=raise-missing-from
314
+ raise super (AzureError , self ).with_traceback (self .exc_traceback )
313
315
except AttributeError :
314
316
self .__traceback__ : Optional [TracebackType ] = self .exc_traceback
315
317
raise self # pylint: disable=raise-missing-from
@@ -355,7 +357,10 @@ class HttpResponseError(AzureError):
355
357
"""
356
358
357
359
def __init__ (
358
- self , message : Optional [object ] = None , response : Optional [_HttpResponseCommonAPI ] = None , ** kwargs : Any
360
+ self ,
361
+ message : Optional [object ] = None ,
362
+ response : Optional [_HttpResponseCommonAPI ] = None ,
363
+ ** kwargs : Any ,
359
364
) -> None :
360
365
# Don't want to document this one yet.
361
366
error_format = kwargs .get ("error_format" , ODataV4Format )
@@ -453,7 +458,10 @@ class TooManyRedirectsError(HttpResponseError, Generic[HTTPRequestType, HTTPResp
453
458
"""
454
459
455
460
def __init__ (
456
- self , history : "List[RequestHistory[HTTPRequestType, HTTPResponseType]]" , * args : Any , ** kwargs : Any
461
+ self ,
462
+ history : "List[RequestHistory[HTTPRequestType, HTTPResponseType]]" ,
463
+ * args : Any ,
464
+ ** kwargs : Any ,
457
465
) -> None :
458
466
self .history = history
459
467
message = "Reached maximum redirect attempts."
0 commit comments