Skip to content

Commit 4e76c64

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6d0a048 commit 4e76c64

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

mypy/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@ def _named_type(name: str) -> mypy.types.Instance:
20492049
return mypy.types.TupleType(items, fallback)
20502050

20512051
fallback = mypy.types.Instance(type_info, [anytype() for _ in type_info.type_vars])
2052-
if fallback.type.get('__class__'):
2052+
if fallback.type.get("__class__"):
20532053
# Since `__class__` is redefined for an instances, we can't trust
20542054
# its runtime checks, it can be dynamic. See #20919
20552055
return fallback

mypy/test/teststubtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ def __bool__(self):
15891589
self._setup()
15901590
return bool(self._wrapped)
15911591
""",
1592-
error='test_module.LazyObject.__class__',
1592+
error="test_module.LazyObject.__class__",
15931593
)
15941594
yield Case(
15951595
stub="""
@@ -1603,7 +1603,7 @@ def default_value():
16031603
16041604
DEFAULT_VALUE = LazyObject(default_value)
16051605
""",
1606-
error='test_module.DEFAULT_VALUE',
1606+
error="test_module.DEFAULT_VALUE",
16071607
)
16081608

16091609
@collect_cases

0 commit comments

Comments
 (0)