Skip to content

Commit 78886f5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 523a168 commit 78886f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8881,7 +8881,7 @@ def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
88818881
for lv in s.lvalues:
88828882
lv.accept(self)
88838883
if isinstance(lv, MemberExpr):
8884-
if lv.name == '__class__':
8884+
if lv.name == "__class__":
88858885
self.fail("Assignment to '__class__' is unsafe and not allowed", lv)
88868886
self.lvalue = False
88878887

test-data/unit/check-assign-to-class.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ class E:
2121
def baz(self):
2222
self.x = 2 # OK
2323

24-
# Trigger GitHub Actions for testing
24+
# Trigger GitHub Actions for testing

0 commit comments

Comments
 (0)