Commit 5f8cca99 authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣
Browse files

Merge branch 'correct-typo' into 'main'

correct comparing name to itself in Type class

See merge request !84
parents b3dccdc7 a1a32f44
Pipeline #296522 passed with stages
in 1 minute and 57 seconds
......@@ -169,7 +169,7 @@ class Type(GIRElement):
def __eq__(self, other):
if isinstance(other, Type):
if self.namespace is not None:
return self.namespace == other.namespace and self.name == self.name
return self.namespace == other.namespace and self.name == other.name
elif self.ctype is not None:
return self.name == other.name and self.ctype == other.ctype
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment