Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 13, 2026
commit dd5693ffb9de06abb871ab7f40f035710c81fadd
6 changes: 1 addition & 5 deletions mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3325,11 +3325,7 @@ def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
# This should be safe as generally semantic analyzer is idempotent.
with self.allow_unbound_tvars_set():
s.rvalue.accept(self)
if (
self.is_class_scope()
and not self.is_stub_file
and not self.is_typeshed_stub_file
):
if self.is_class_scope() and not self.is_stub_file and not self.is_typeshed_stub_file:
for lvalue in s.lvalues:
if isinstance(lvalue, NameExpr) and lvalue.name == "__qualname__":
if not isinstance(s.rvalue, StrExpr):
Expand Down
Loading