Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modification2 fichier scope.py
  • Loading branch information
lamia-bel committed Oct 9, 2025
commit 449df98478a08a15b0d55946e736cb2098e23657
2 changes: 1 addition & 1 deletion mypy/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def current_full_target(self) -> str:
"""Return the current target (may be a class)."""
assert self.module
if self.function:
return self.function.fullname
return self.function.fullname or ""
if self.classes:
return self.classes[-1].fullname
return self.module
Expand Down
Loading