https://dagster.io/ logo
#ask-community
Title
# ask-community
j

Jazzy

09/29/2021, 7:50 AM
Beginner question - I was testing out setting different Input and Output definitions and noticed that when I use List ( from dagster import List ) in the dagster UI it always shows the input and outputs as the Any type. When I use Int or Float it shows correctly in the UI. Is this expected behaviour or am I missing something really simple?
Copy code
@solid(
    output_defs=[OutputDefinition(dagster_type=List)]
)
l

Liam Coatman

09/29/2021, 7:53 AM
It looks like the type is
[Any]
, i.e. a list with elements of
Any
type. That's what you specified. If you want something more specific, e.g. a list of ints, use
dagster_type=List[int]
j

Jazzy

09/29/2021, 8:59 AM
Ah nice one @Liam Coatman