-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better imports #230
Comments
So, this is related to #232. Those imports aren't there to prevent circular imports but they are there to make sure those modules only get imported after the configuration is setup. I'm unsure if we want to close this as a duplicate or track separately. |
How keen are you on keeping the configuration as simple variables like this ? I was thinking about using pydantic models, for the following reasons:
|
This has been fixed in #239 |
I have seen a pattern where certain modules are imported from within functions.
This is usually used as a hack to avoid circular imports, which brings the question of why we have them like that ?
This pattern has caused the
e2e
tests to fail in #229 ( see all of my comments)The erros is mostly do to unusual binding of values inside modules/ to variables, which can lead a variable to have 2 states at runtime, whereas we only want it to have one across the entire app's lifecycle.
The text was updated successfully, but these errors were encountered: