Skip to content

🎨Rework imports - avoid circular import errors#790

Merged
lord-haffi merged 17 commits intomainfrom
rework_imports
May 8, 2024
Merged

🎨Rework imports - avoid circular import errors#790
lord-haffi merged 17 commits intomainfrom
rework_imports

Conversation

@lord-haffi
Copy link
Copy Markdown
Collaborator

With this design: Only use Forward References in type annotations i.e. wrap the type inside "" and import them only for mypy to prevent type check errors using the flag TYPE_CHECKING. This should prevent any circular import errors.

@lord-haffi lord-haffi self-assigned this May 7, 2024
@lord-haffi lord-haffi requested review from hf-krechan and levtoji May 7, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants