Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to decorate routes within a Flask_RESTful Resource class #5

Open
TheMourningDawn opened this issue Mar 14, 2018 · 0 comments
Open

Comments

@TheMourningDawn
Copy link

.../env/lib/python3.5/site-packages/flask_accept/__init__.py", line 39, in __call__
    return self.accept_handlers[mimetype](*args, **kwargs)
TypeError: get() missing 1 required positional argument: 'self'

A much better description of the actual issue can be found in this Stack Overflow article

In short, since we are decorating an instance method, we to set the decorating class up as a descriptor class such that it knows about the instance of the class the function is bound to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant