flask-allows
flask-allows copied to clipboard
Avoid using `flask._compat`
Hi! requirements.py
currently uses a portion of Flask's internal API (flask._compat.with_metaclass
). I'm currently using a Flask-compatible framework (Quart) that doesn't replicate this module.
I understand that you're under no responsibility to support non-Flask frameworks, but I was wondering if you'd accept a pull request to eliminate the import? The function being imported appears to be fairly trivial to vendor/inline.
I'm considering doing a major release that drops python 2 later this year so that's something that can actually just go away since there won't be too be any metaclass metamagic.
I used flask._compat report an error ,what can I solve this mistake,thank you
I used flask._compat report an error ,what can I solve this mistake,thank you
I get flask app to run with changing
from flask._compat import with_metaclass
to from six import with_metaclass
in flask_allows\requirements.py
after upgraded to flask 2.0.