'Using an inherited Flask class : how to type
OK so first of all, this is not my code, I'm simply maintaining it. It's a Jukebox, written in Python with Flask, and the main Flask app is actually an inherited Flask class.
This Jukebox(Flask) class is declared in the init.py, but there is so more code elsewhere that use the app, especially to access some shared values (through the use of Flask.current_app, tho I've seen that it might be better to use Flask.g).
I simply wanted to know if there was a way to type Flask.current_app such that my IDE knows that it's a Jukebox object, so that it would be easier to work with ? If you know anything about that, it'd be wonderful.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
