Skip to content

Commit

Permalink
update __eq__ logic
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas committed Jul 18, 2019
1 parent 000cf6b commit d97cc46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rosidl_generator_py/resource/_msg.py.em
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ if isinstance(type_, AbstractNestedType):
if not isinstance(other, self.__class__):
return False
@[for member in message.structure.members]@
@[ if len(message.structure.members) == 1 and member.name == EMPTY_STRUCTURE_REQUIRED_MEMBER_NAME]@
@[ continue]@
@[ end if]@
@[ if isinstance(member.type, Array) and isinstance(member.type.value_type, BasicType) and member.type.value_type.typename in SPECIAL_NESTED_BASIC_TYPES]@
if all(self.@(member.name) != other.@(member.name)):
@[ else]@
Expand Down

0 comments on commit d97cc46

Please sign in to comment.