flask-autodoc
flask-autodoc copied to clipboard
ExtDeprecationWarning: Importing flask.ext.autodoc is deprecated
I have a message with flask 1.10
/usr/local/lib/python3.4/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.autodoc is deprecated, use flask_autodoc instead.
I test replace in init.py
from flask.ext.autodoc.autodoc import Autodoc
by
from flask_autodoc.autodoc import Autodoc
And is ok. Can you modify your code ? Thank you for module
Seems like this repo is not supported yet. I use this solution to disable this warning:
import warnings
# disable autodoc internal Warning
# https://github.com/acoomans/flask-autodoc/issues/27
from flask.exthook import ExtDeprecationWarning
warnings.simplefilter('ignore', ExtDeprecationWarning)
# flask imports
@acoomans, in the meantime (starting with flask 1.0) this is no longer a warning but an error which hits many open source projects, so a fix and a new release would be very welcome.
Any progress on this?
3 years later still not fixed, don't expect that much imho. Downgrading Flask versions doesn't seem a solution for me.
@erm3nda There is a drop-in replacement for Autodoc called Selfdoc I have been using it for a while and it works fine.