Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid DeprecationWarning when importing OrderedDict
in flask_restx/model.py and flask_restx/swagger.py logic is installed to circumvent differences in Python2 and Python3 when importing from the collections module. Some classes from collections has been moved to collections.abc in Python3. OrderedDict is not one of them, hence an ImportError is raised when trying to import OrderedDict from collections.abc. This then leads to importing both OrderedDict AND MutableMapping/Hashable from collections.abc which then raises a deprecation warning since MutableMapping/Hashable lives in collections.abc in Python3. This patch should fix those DeprecationWarnings to be raised.
- Loading branch information