generated from jCloud/repository-template
feat(python-generator): check type at module namespace comparision
Added type check to the Python module namespace comparision function.
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user