From 04e52aa41a366420e134dee22abeea50f9bfec11 Mon Sep 17 00:00:00 2001 From: Nitai Pramanik Date: Thu, 2 May 2024 12:03:39 -0400 Subject: [PATCH] update a comment. --- statemachine/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/statemachine/utils.py b/statemachine/utils.py index 70be1538..5f19d73f 100644 --- a/statemachine/utils.py +++ b/statemachine/utils.py @@ -6,6 +6,10 @@ def qualname(cls): def ensure_iterable(obj): + """ + Returns an iterator if obj is not an instance of string or if it + encounters type error, otherwise it returns a list. + """ if isinstance(obj, str): return [obj] try: