From e0f21d1cf19e9581406e83069fc462548c73647a Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 26 Jan 2024 10:54:08 -0500 Subject: [PATCH] Remove unnecessary parentheses around assert. (#133) This makes newer flake8 happy. Signed-off-by: Chris Lalancette --- src/python_qt_binding/binding_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_qt_binding/binding_helper.py b/src/python_qt_binding/binding_helper.py index b7e0658..27c3237 100644 --- a/src/python_qt_binding/binding_helper.py +++ b/src/python_qt_binding/binding_helper.py @@ -134,7 +134,7 @@ def _register_binding_module(module_name, module): def _named_import(name): parts = name.split('.') - assert(len(parts) >= 2) + assert len(parts) >= 2 module = builtins.__import__(name) for m in parts[1:]: module = module.__dict__[m]