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

Update @jsonapi to use functools.wraps #187

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

cclauss
Copy link

@cclauss cclauss commented Nov 29, 2021

Provides a more complete solution to 12f6c18

In internetarchive/openlibrary#5910 we want to use Python's inspect module to access the method.__code__ and method.__doc__ variables but @decorators block such access unless we use https://docs.python.org/3/library/functools.html#functools.wraps

In internetarchive/openlibrary#5910 we want to use Python's `inspect` module to access the method.__code__ and method.__doc__ variables but @decorators block such access unless https://docs.python.org/3/library/functools.html#functools.wraps is used.
Copy link
Member

@mekarpeles mekarpeles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, discussed w/ @cclauss on 1:1 call; we should add a label that this requires special deploy (i.e. only deploying this PR w/ latest version of infogami)

@mekarpeles mekarpeles merged commit 20a4203 into master Dec 2, 2021
@mekarpeles mekarpeles deleted the Update-@jsonapi-to-use-functools.wraps branch December 2, 2021 17:14
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

Successfully merging this pull request may close these issues.

2 participants