From 69ad856456f8334d2ae4384ca558fcff8638bac4 Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Fri, 2 Aug 2024 11:59:01 +0300 Subject: [PATCH] Add ignore --- src/robotlibcore/core/hybrid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/robotlibcore/core/hybrid.py b/src/robotlibcore/core/hybrid.py index cb0cc6c..2caa8b2 100644 --- a/src/robotlibcore/core/hybrid.py +++ b/src/robotlibcore/core/hybrid.py @@ -88,7 +88,7 @@ def __get_members(self, component): raise TypeError( msg, ) - if type(component) is component.__class__: + if type(component) != component.__class__: # noqa: E721 msg = ( "Libraries must be modules or new-style class instances, " f"got old-style class {component.__class__.__name__} instead."