-
Notifications
You must be signed in to change notification settings - Fork 99
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
Mypy errors accessing resources fields #60
Comments
Related issue #58 I don't think we did some changes (from 6.0.0b5 to 6.1.0) related to Mypy/linting. Are you using the same mypy version or upgraded? |
same one. the problem is that we didnt have typing before - it didnt find it and because i use |
I continued to think about this problem and correct me if im wrong, but the |
you are right that primarly
|
Im using python 3.8 and trying to upgrade from version 6.0.0b5 to 6.1.0.
The code is
When using version 6.0.0b5 and running
mypy --ignore-missing-imports a.py
I get:Success: no issues found in 1 source file
Using version 6.1.0 and running the same function I get:
Looking at the classes, we can see that the annotations are using
FooType
, for exampleCodeableConceptType
and notCodeableConcept
which makes mypy not being able to parse the library.If I understand correctly, the rational to use
FooType
classes is otherwise we would have circle imports.How can we make mypy parse this library?
Or, what changed between 6.0.0b5 to 6.1.0 that can affect it? Were type hints added to the library? If so, I think its wrong to do so :)
The text was updated successfully, but these errors were encountered: