Replies: 1 comment 3 replies
-
I realized that types-flask is for old version only. I uninstalled it and now the complaint goes down to just the line request.json. I still got type of json is unkown. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to flask and is still learning how to use it. I found this simple example and pasted it in VS Code with Type Check in Strict mode. I starts to get bombarded with type issue in almost every single line of code I use flask. What is going on? How do I fix that?
I'm using flask 3.1.0 and I have types-flask 1.1.6 installed.
It seems the fundamental issue is that Pylance doesn't know what jsonify will return, and it doesn't konw about the json attribute of request. Is there a way to fix this? The code itself seems to be running correctly. I want to avoid this issue while using strict type checking.
Beta Was this translation helpful? Give feedback.
All reactions