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