From ad59de05bdeddf7115021445007d76ef6dd531ff Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Mon, 25 Mar 2024 17:05:30 -0400 Subject: [PATCH] Small fix for newer flake8 compatibility. (#792) Don't directly compare types, but instead use "is" instead. Signed-off-by: Chris Lalancette --- rosidl_parser/rosidl_parser/definition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosidl_parser/rosidl_parser/definition.py b/rosidl_parser/rosidl_parser/definition.py index 689b71384..cfb295a27 100644 --- a/rosidl_parser/rosidl_parser/definition.py +++ b/rosidl_parser/rosidl_parser/definition.py @@ -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):