Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

manager.command, deprecation warning #183

@rbw

Description

@rbw

Hello,

I'm getting the following deprecation warning when decorating a function with manager.command in Python 3.6:

/usr/local/lib/python3.6/dist-packages/flask_script/commands.py:118: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  args, varargs, keywords, defaults = inspect.getargspec(func)
from flask_script import Manager

manager = Manager(app)

@manager.command
def hello():
    print('hello')
pip3 freeze | grep -i flask-script
Flask-Script==2.0.6

Btw - where do you store version info in flask_script? I noticed __version__ isn't available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions