Failing type check with mypy
See original GitHub issueEnvironment:
flask-jwt-extended==4.4.2
mypy==0.971
Example listing of check.py:
from flask_jwt_extended import current_user
current_user.id
Type checking error:
$ mypy check.py
check.py:3: error: "LocalProxy[Any]" has no attribute "id"
Found 1 error in 1 file (checked 1 source file)
There is usually a lot of accessing attributes of the current_user variable so I’ve started to see a huge number of these errors in my codebase. Version 4.4.1 leads to the same errors but there is no such errors with version 4.4.0 so I guess it relates to #480. Also when I removed py.typed file from my local installation then errors disappeared.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Common issues and solutions - mypy 0.991 documentation
If installation fails, you've probably hit one of these issues: ... You can use a # type: ignore comment to silence the type...
Read more >Using mypy to type check and i cant figure out why this errors ...
So, i using mypy to learn how to code in python using type check from the beginning. I'm using this code to train:...
Read more >mypy is failing on type checking Response #5283 - GitHub
We're using mypy internally to check for type errors, on an specific interaction with requests.models.Response object it gives you an error ...
Read more >Type Checking With Mypy - Real Python
In this lesson, you'll explore how to use Mypy to do type checking on your Python code. Mypy is the most common tool...
Read more >Jake VanderPlas on Twitter: "Python type annotation question ...
e.g. I want to write a test that asserts that `x: ArrayLike = "xyz"` fails in mypy. ... Python type annotation question... when...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Fixed in 4.4.3. Cheers
Oops! It was so simple that I glossed right over it, sorry! 🙃
Sounds like it could be related. I’ll keep you updated.