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

Daniel Mosesson

05/23/2022, 8:55 PM
Is there an easy way to support type hints on parameters like
@op
def foo(context, bar:[MyType]) ?
🤖 1
s

sean

05/23/2022, 9:34 PM
Hi Daniel, We do already support type hints on parameters-- or perhaps I’m misunderstanding what you’re asking about? Could you elaborate a bit?
d

Daniel Mosesson

05/24/2022, 12:52 AM
My bad, the issue is that
[MyType]
should be
List[MyType]
and it works
g

geoHeil

05/24/2022, 3:57 AM
Though I made the experience that generic types are not working
s

sean

05/25/2022, 4:35 PM
@geoHeil Does stuff like
List[MyType]
not work for you?
g

geoHeil

05/25/2022, 4:37 PM
This particular case works - but is also not a generic type i.e. my own custom generic type. That fails as documented here https://github.com/dagster-io/dagster/discussions/6913#discussioncomment-2784887