@@ -97,7 +97,7 @@ def raise_with_traceback(exception: Callable, *args: Any, message: str = "", **k
9797 exc_msg = "{}, {}: {}" .format (message , exc_type .__name__ , exc_value )
9898 error = exception (exc_msg , * args , ** kwargs )
9999 try :
100- raise error .with_traceback (exc_traceback ) # pylint: disable=raise-missing-from
100+ raise error .with_traceback (exc_traceback )
101101 except AttributeError : # Python 2
102102 error .__traceback__ = exc_traceback
103103 raise error # pylint: disable=raise-missing-from
@@ -150,7 +150,9 @@ def get(self, key: KeyType) -> Optional[ValueType]:
150150
151151
152152def 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 ]],
154156) -> None :
155157 if not error_map :
156158 return
@@ -309,7 +311,7 @@ def raise_with_traceback(self) -> None:
309311 This method is deprecated as we don't support Python 2 anymore. Use raise/from instead.
310312 """
311313 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 )
313315 except AttributeError :
314316 self .__traceback__ : Optional [TracebackType ] = self .exc_traceback
315317 raise self # pylint: disable=raise-missing-from
@@ -355,7 +357,10 @@ class HttpResponseError(AzureError):
355357 """
356358
357359 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 ,
359364 ) -> None :
360365 # Don't want to document this one yet.
361366 error_format = kwargs .get ("error_format" , ODataV4Format )
@@ -453,7 +458,10 @@ class TooManyRedirectsError(HttpResponseError, Generic[HTTPRequestType, HTTPResp
453458 """
454459
455460 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 ,
457465 ) -> None :
458466 self .history = history
459467 message = "Reached maximum redirect attempts."
0 commit comments