Skip to content

Commit 3b985a1

Browse files
authored
Use a qualified fullname
1 parent e6ac51b commit 3b985a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6506,7 +6506,7 @@ def _lookup(
65066506
# 2b. Class attributes __qualname__ and __module__
65076507
if self.type and not self.is_func_scope() and name in {"__qualname__", "__module__"}:
65086508
v = Var(name, self.str_type())
6509-
v._fullname = name
6509+
v._fullname = self.qualified_name(name)
65106510
return SymbolTableNode(MDEF, v)
65116511
# 3. Local (function) scopes
65126512
for table in reversed(self.locals):

0 commit comments

Comments
 (0)