From ff9d8c615403d4153c2e3e9992df9f0eeb3273e8 Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Fri, 11 Oct 2024 20:26:21 +0200 Subject: [PATCH] curse: not x in -> x not in --- vsexprtools/polyfills.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsexprtools/polyfills.py b/vsexprtools/polyfills.py index 2516f8a..7e49b6c 100644 --- a/vsexprtools/polyfills.py +++ b/vsexprtools/polyfills.py @@ -300,7 +300,7 @@ def wrapper(*args, **kwargs): if fname == impl_method: cfunc_t = ftype - if not (klass, attr) in tp_as_dict: + if (klass, attr) not in tp_as_dict: tp_as_dict[(klass, attr)] = ctypes.cast(getattr(tyobj, impl_method), cfunc_t) cfunc = cfunc_t(wrapper) @@ -324,7 +324,7 @@ def reverse(klass, attr): setattr(tp_as, impl_method, ctypes.cast(ctypes.c_void_p(None), cfunc_t)) else: - if not (klass, attr) in tp_as_dict: + if (klass, attr) not in tp_as_dict: return cfunc = tp_as_dict[(klass, attr)]