Skip to content

Commit

Permalink
Small fix for newer flake8 compatibility. (#792)
Browse files Browse the repository at this point in the history
Don't directly compare types, but instead use "is" instead.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette authored Mar 25, 2024
1 parent 0775e10 commit ad59de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosidl_parser/rosidl_parser/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class AbstractType:
__slots__ = ()

def __eq__(self, other):
return type(self) == type(other)
return type(self) is type(other)


class AbstractNestableType(AbstractType):
Expand Down

0 comments on commit ad59de0

Please sign in to comment.