feat(python-generator): check type at module namespace comparision

Added type check to the Python module namespace comparision function.
This commit is contained in:
jakob.scheid committed 2026-09-27 22:01:19 +02:00
1 parent 934624fce3
commit 6d2b32a736
1 file changed
+1 -1
+1 -1
View File
@@ -223,4 +223,4 @@ class PythonModuleNamespace(PythonNamespace):
super().__init__(name)
def __eq__(self, value: PythonModuleNamespace) -> bool:
return self.name == value.name
return isinstance(value, type(self)) and self.name == value.name