DagsterTypes cannot be used to annotate a config type #18360
-
|
I got an unclear error running my system, and I was unsure what part of the code triggered it: I defined this: class MachineForwardingConfig(Config): I thought that perhaps I needed to use Dagster's String class instead, but I got another error when I did:
The call itself was:
(machine_forwarding being the name of function defined as an asset, and therefore an op) The op itself had no other params: `@op def machine_forwarding(config):` Is that an incorrect way to call that op? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @yuval-airis, if you import |
Beta Was this translation helpful? Give feedback.
Hi @yuval-airis, if you import
Listfromtypinginstead ofdagsterit should work. The name collisions of top-level exports from Dagster with typing are a relic of Python 2 support and we should probably drop them.