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 ec262ef99e - Show all commits
+1 -1
View File
@@ -156,7 +156,7 @@ class PythonPackageNamespace(PythonNamespace):
# For performance reasons, is not called self.sub_namespace_names
# if the name attribute does not match, which can be quickly
# verified
if self.name != value.name:
if not (isinstance(value, type(self)) and self.name == value.name):
return False
return value.sub_namespace_names() == self.sub_namespace_names()