Skip to content

Commit 4f2427a

Browse files
committed
magicbot: Allow feedbacks returning Sequence
1 parent 9c5ea4d commit 4f2427a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magicbot/magic_tunable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _get_topic_type(
248248
# Check for PEP 484 generic types
249249
origin = getattr(return_annotation, "__origin__", None)
250250
args = typing.get_args(return_annotation)
251-
if origin in (list, tuple) and args:
251+
if origin in (list, tuple, collections.abc.Sequence) and args:
252252
# Ensure tuples are tuple[T, ...]
253253
if origin is tuple and not (len(args) == 2 and args[1] is Ellipsis):
254254
return None

0 commit comments

Comments
 (0)