@@ -405,39 +405,37 @@ def has_no_attr(
405405 return codes .OPERATOR
406406 elif member == "__neg__" :
407407 display_type = (
408- self .pretty_callable_or_overload (original_type )
409- if isinstance (original_type , CallableType )
410- else format_type (original_type , self .options )
411- )
408+ self .pretty_callable_or_overload (original_type )
409+ if isinstance (original_type , CallableType )
410+ else format_type (original_type , self .options )
411+ )
412412 self .fail (
413- f"Unsupported operand type for unary - ({ display_type } )" ,
414- context ,
415- code = codes .OPERATOR ,
416- )
413+ f"Unsupported operand type for unary - ({ display_type } )" ,
414+ context ,
415+ code = codes .OPERATOR ,
416+ )
417417 return codes .OPERATOR
418418 elif member == "__pos__" :
419419
420- display_type = (
420+ display_type = (
421421 self .pretty_callable_or_overload (original_type )
422422 if isinstance (original_type , CallableType )
423423 else format_type (original_type , self .options )
424424 )
425425 self .fail (
426- f"Unsupported operand type for unary + ({ display_type } )" ,
426+ f"Unsupported operand type for unary + ({ display_type } )" ,
427427 context ,
428428 code = codes .OPERATOR ,
429429 )
430430 return codes .OPERATOR
431431 elif member == "__invert__" :
432- display_type = (
432+ display_type = (
433433 self .pretty_callable_or_overload (original_type )
434434 if isinstance (original_type , CallableType )
435435 else format_type (original_type , self .options )
436436 )
437437 self .fail (
438- f"Unsupported operand type for ~ ({ display_type } )" ,
439- context ,
440- code = codes .OPERATOR ,
438+ f"Unsupported operand type for ~ ({ display_type } )" , context , code = codes .OPERATOR
441439 )
442440 return codes .OPERATOR
443441 elif member == "__getitem__" :
0 commit comments