Skip to content

Commit

Permalink
Small fix for newer flake8 compatibility.
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 committed Mar 25, 2024
1 parent 0775e10 commit 4b59eb2
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 4b59eb2

Please sign in to comment.