Skip to content
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

Relative imports: Import class instead of module #1684

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lord-haffi
Copy link
Contributor

This would resolve #1683.
This PR is just a suggestion. I monkey-patched the function in my code this way to get my use-case to work so I wanted to share it with you. But maybe another approach e.g. using a flag to support both "import-styles" could be better, idk.

@lord-haffi
Copy link
Contributor Author

@koxudaxi Apparently, this would break many Unittests due to unexpected outputs. Perhaps, using an optional flag would be better.

@koxudaxi
Copy link
Owner

@lord-haffi
I'm sorry for my late response.
I agree with you. I will check it when I get the time.

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.

Relative imports paths when generating multiple models
2 participants