File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -522,23 +522,12 @@ def has_no_attr(
522
522
type (item ) == NoneType for item in original_type .items
523
523
):
524
524
typ_format = '"None"'
525
- if typ_format == '"None"' :(
526
- self .fail (
527
- 'Item {} of {} has no attribute "{}"{}. ADD HINT HERE' .format (
528
- typ_format , orig_type_format , member , extra
529
- ),
530
- context ,
531
- code = codes .UNION_ATTR ,
532
- )
533
- )
534
- else :(
535
- self .fail (
536
- 'Item {} of {} has no attribute "{}"{}' .format (
537
- typ_format , orig_type_format , member , extra
538
- ),
539
- context ,
540
- code = codes .UNION_ATTR ,
541
- )
525
+ self .fail (
526
+ 'Item {} of {} has no attribute "{}"{}' .format (
527
+ typ_format , orig_type_format , member , extra
528
+ ),
529
+ context ,
530
+ code = codes .UNION_ATTR ,
542
531
)
543
532
return codes .UNION_ATTR
544
533
elif isinstance (original_type , TypeVarType ):
You can’t perform that action at this time.
0 commit comments