Skip to content

Commit

Permalink
curse: not x in -> x not in
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 11, 2024
1 parent feba33c commit ff9d8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsexprtools/polyfills.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)]
Expand Down

0 comments on commit ff9d8c6

Please sign in to comment.