zylhub / apiflask Goto Github PK
View Code? Open in Web Editor NEWThis project forked from apiflask/apiflask
Web APIs for Flask. 🍯
Home Page: https://apiflask.com
License: MIT License
This project forked from apiflask/apiflask
Web APIs for Flask. 🍯
Home Page: https://apiflask.com
License: MIT License
Traceback (most recent call last):
File "h:/apiflask/examples/pagination/app.py", line 9, in <module>
from apiflask import APIFlask, Schema, input, output, PaginationSchema, pagination_builder
File "H:\apiflask\venv\lib\site-packages\apiflask\__init__.py", line 14, in <module>
from .decorators import auth_required as auth_required
File "H:\apiflask\venv\lib\site-packages\apiflask\decorators.py", line 9, in <module>
from webargs.flaskparser import FlaskParser as BaseFlaskParser
File "H:\apiflask\venv\lib\site-packages\webargs\__init__.py", line 7, in <module>
from webargs.core import ValidationError
File "H:\apiflask\venv\lib\site-packages\webargs\core.py", line 32, in <module>
ErrorHandler = typing.Callable[..., typing.NoReturn]
File "C:\ProgramData\Anaconda3\lib\typing.py", line 755, in __getitem__
return self.__getitem_inner__(params)
File "C:\ProgramData\Anaconda3\lib\typing.py", line 251, in inner
return func(*args, **kwds)
File "C:\ProgramData\Anaconda3\lib\typing.py", line 774, in __getitem_inner__
result = _type_check(result, msg)
File "C:\ProgramData\Anaconda3\lib\typing.py", line 135, in _type_check
raise TypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.NoReturn is not valid as type argument
https://bugs.python.org/issue34921
临时解决:
pip install webargs==6.1.1
webargs changelog: https://webargs.readthedocs.io/en/latest/changelog.html
Environment:
APIFlask 0.6.3
apispec 4.4.1
click 8.0.0
colorama 0.4.4
Flask 2.0.0
Flask-HTTPAuth 4.4.0
flask-marshmallow 0.14.0
Flask-SQLAlchemy 2.5.1
greenlet 1.1.0
importlib-metadata 4.0.1
itsdangerous 2.0.1
Jinja2 3.0.1
MarkupSafe 2.0.1
marshmallow 3.12.1
pip 10.0.1
setuptools 39.0.1
six 1.16.0
SQLAlchemy 1.4.15
typing-extensions 3.10.0.0
webargs 8.0.0
Werkzeug 2.0.1
zipp 3.4.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.