I have a flask app that I'm developing in PyCharm on MacOS.
When I try to import the flask current app like this:
from flask import current_app as app
I get an inspection error: Unresolved reference 'current_app'
, but when I run the the project I get no runtime errors.
If I "import" the current app like this:
import flask
app = flask.current_app
then PyCharm is happy.
I have the same problem with local imports. How can I fix this.