Coverage for skema/gromet/execution_engine/types/list.py: 90%
10 statements
« prev ^ index » next coverage.py v7.5.0, created at 2024-04-30 17:15 +0000
« prev ^ index » next coverage.py v7.5.0, created at 2024-04-30 17:15 +0000
1from typing import Any, List
3from skema.gromet.execution_engine.types.defined_types import Field
6class new_List(object):
7 source_language_name = {"Python": "new_List"}
8 inputs = [Field("elements", "Any", True)]
9 outputs = [Field("list_output", "List")]
10 shorthand = "new_List"
11 documentation = ""
13 def exec(*elements: Any) -> list:
14 return list(
15 elements
16 ) # Interestingly when passing variable sized arguments, it is passeed as a tuple