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

Circular import issue with annotations #6

Open
Zwork101 opened this issue Aug 7, 2019 · 0 comments
Open

Circular import issue with annotations #6

Zwork101 opened this issue Aug 7, 2019 · 0 comments
Labels
component: models Issue is related to clamor's models help wanted Extra attention is needed

Comments

@Zwork101
Copy link

Zwork101 commented Aug 7, 2019

We want to add annotations for everything method on the models. The problem is some annotations point to others files, and those files have annotations that point to the other file. Basically, we create a circular import, which python does not like. A theoretical solution is to use strings for annotation ion accordance to PEP 484. PyCharm will read the string annotation, but doesn't know what class we're referencing too, because the file isn't imported. (Sorry if this is confusing, theirs no good way to explain this). If anyone has an idea on how to solve this issue, it would be greatly appreciated.

@Zwork101 Zwork101 added help wanted Extra attention is needed component: models Issue is related to clamor's models labels Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: models Issue is related to clamor's models help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants