You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argument Clinic duplicate module check is malfunctioning #107609
The check should be against .modules, not .classes:
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 1bcdb6b1c3..dc4a7f9318 100755
--- a/Tools/clinic/clinic.py+++ b/Tools/clinic/clinic.py@@ -4478,7 +4478,7 @@ def directive_module(self, name: str) -> None:
if cls:
fail("Can't nest a module inside a class!")
- if name in module.classes:+ if name in module.modules:
fail("Already defined module " + repr(name) + "!")
m = Module(name, module)
Activity
erlend-aasland commentedon Aug 3, 2023
Discovered while expanding the test suite to cover all directives and commands.
pythongh-107609: Fix duplicate module check in Argument Clinic
gh-107609: Fix duplicate module check in Argument Clinic (#107610)
pythongh-107609: Fix duplicate module check in Argument Clinic (pytho…
erlend-aasland commentedon Aug 4, 2023
Fixed in
mainby: