Hey everyone! Just wondering if there’s a variable...
# ask-community
e
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
we don't currently have something like that- what would you want to do with a variable like that?
e
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
gotcha - makes sense