Code Monkey home page Code Monkey logo

apiflask's People

Contributors

180909 avatar dependabot[bot] avatar glunkad avatar greyli avatar henshalb avatar imoyao avatar jeamland avatar jiashuchen avatar johntheprime avatar jugmac00 avatar justin-jiajia avatar llt22 avatar miguelgrinberg avatar mmdbalkhi avatar pre-commit-ci[bot] avatar tridagger avatar yuancjun1 avatar yuxiaoy1 avatar z-t-y avatar

Watchers

 avatar

apiflask's Issues

Python3.7.0 | TypeError: Plain typing.NoReturn is not valid as type argument

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

  • webargs版本更新引入的问题

临时解决:
pip install webargs==6.1.1

webargs changelog: https://webargs.readthedocs.io/en/latest/changelog.html

Environment:

  • Python version: Python3.7.0
  • Flask version: 2.0.0
  • APIFlask version: 0.6.3
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.