Skip to content

Commit 8cdac52

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0aa4867 commit 8cdac52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mypy/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,12 @@ def has_no_attr(
510510
code=codes.ATTR_DEFINED,
511511
)
512512
failed = True
513-
elif isinstance(typ, Instance) and typ.type.names:
513+
elif isinstance(typ, Instance) and typ.type.names:
514514
alternatives = set(typ.type.names.keys())
515515
alternatives.discard(member)
516516
matches = [m for m in COMMON_MISTAKES.get(member, []) if m in alternatives]
517517
matches.extend(best_matches(member, alternatives, n=3))
518-
if matches:
518+
if matches:
519519
self.fail(
520520
'{} has no attribute "{}"; maybe {}?{}'.format(
521521
format_type(original_type, self.options),

0 commit comments

Comments
 (0)