https://dagster.io/ logo
#dagster-support
Title
# dagster-support
e

Eegan K

08/17/2022, 8:40 PM
Hey everyone! Just wondering if there’s a variable like typing.TYPE_CHECKING for when dagster is doing its import time type checking. I have an assert that breaks at that point.
🤖 1
s

sandy

08/17/2022, 11:10 PM
we don't currently have something like that- what would you want to do with a variable like that?
e

Eegan K

08/17/2022, 11:13 PM
I was converting some stuff from being run at import time to being run at runtime and I wanted to be sure that nothing was being run at import time (except, of course, dagster's solid type checking stuff). I found a way around it by determining how many times my object had been initialized, so I should be good now. Might be a nice feature though.
s

sandy

08/17/2022, 11:14 PM
gotcha - makes sense