Fix type check for args in scheduler.py E721 (#233)

This commit is contained in:
Knuth
2024-10-10 16:10:43 +02:00
committed by GitHub
parent 8e403d0136
commit c1e00b09cb

View File

@@ -65,7 +65,7 @@ def scheduler(broker: Broker = None):
if s.args:
args = ast.literal_eval(s.args)
# single value won't eval to tuple, so:
if type(args) != tuple:
if type(args) is not tuple:
args = (args,)
q_options = kwargs.get("q_options", {})
if s.intended_date_kwarg: