We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5ea4d commit 4f2427aCopy full SHA for 4f2427a
magicbot/magic_tunable.py
@@ -248,7 +248,7 @@ def _get_topic_type(
248
# Check for PEP 484 generic types
249
origin = getattr(return_annotation, "__origin__", None)
250
args = typing.get_args(return_annotation)
251
- if origin in (list, tuple) and args:
+ if origin in (list, tuple, collections.abc.Sequence) and args:
252
# Ensure tuples are tuple[T, ...]
253
if origin is tuple and not (len(args) == 2 and args[1] is Ellipsis):
254
return None
0 commit comments