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
modification fichier scope.py
  • Loading branch information
lamia-bel committed Oct 9, 2025
commit 7b2d6df6c1dfda604a3e23d1634acf6eaeb8454a
1 change: 1 addition & 0 deletions mypy/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def module_scope(self, prefix: str) -> Iterator[None]:
self.module = prefix
self.classes = []
self.function = None
self.functions=[] # reset the function stack when entering a new module
self.ignored = 0
yield
assert self.module
Expand Down
Loading