Fix(python-generator): Python namespaces comparision type check #41

Merged
jakob.scheid merged 4 commits from fix/python-namespace-comparision-type-check into main 2026-09-27 22:17:16 +02:00
Showing only changes of commit 6d2b32a736 - Show all commits
+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