From b5f057ad6a28d8b59a57ecd26aca132b8c72d655 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Wed, 16 Aug 2023 09:42:49 -0400 Subject: [PATCH] Fix type check --- romancal/associations/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/romancal/associations/generate.py b/romancal/associations/generate.py index b8eee9e52..b7184da9d 100644 --- a/romancal/associations/generate.py +++ b/romancal/associations/generate.py @@ -46,7 +46,7 @@ def generate(pool, rules, version_id=None, finalize=True): documentation for a full description. """ associations = [] - if type(version_id) is bool: + if isinstance(version_id, bool): version_id = make_timestamp() process_queue = ProcessQueueSorted( [ProcessList(items=pool, rules=[rule for _, rule in rules.items()])]