Skip to content

Commit

Permalink
IMP: Allow Collection[Visualization] for outputs in visualizers (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oddant1 committed Apr 17, 2024
1 parent 6306962 commit 27f5ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiime2/core/type/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def _assert_valid_outputs(self, outputs):

for output_name, spec in outputs.items():
if not (is_semantic_type(spec.qiime_type) or
spec.qiime_type == Visualization):
spec.qiime_type == Visualization or
spec.qiime_type == Collection[Visualization]):
raise TypeError(
"Output %r must be a semantic QIIME type or "
"Visualization, not %r"
Expand Down

0 comments on commit 27f5ec0

Please sign in to comment.