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
incorrect hookimpl signature inspection for decorated functions #358
Comments
the "limit" was never intentional - its primarily a artifact of python 2 support, signature should be used these days |
0001-proposed-fix-for-issue-358.patch.txt Attached is a fix proposal (including a matching test) as a git-patch. |
Why not open a pr?, this is absolutely horrible to work with from mobile, and it's still quite a pain if I get back to the computer |
I'd love to and I actually tried, but seems like I don't have permission to push a branch? |
@eachimei the way to contribute in GitHub in general is fork the repository, push your branch there, then open a PR. |
…sion 23.9.3 Dmitry Shachnev (1): Fix wrong import name Jason R. Coombs (5): Update changelog. Ref #597. Add test to ensure varnames are calculated correctly. Ref #596. Add workaround for pytest-dev/pluggy#358. Fixes #596. Also use functools.wraps on the wrapper in case the hook machinery relies on the name of the function. Remove superfluous import by using the exception from the namespace.
I'd love to and I actually tried, but seems like I don't have permission to push a branch?
…________________________________
From: Ronny Pfannschmidt ***@***.***>
Sent: Tuesday, August 2, 2022 10:58:18 PM
To: pytest-dev/pluggy ***@***.***>
Cc: Achimeir, Eyal ***@***.***>; Author ***@***.***>
Subject: Re: [pytest-dev/pluggy] incorrect hookimpl signature inspection for decorated functions (Issue #358)
Why not open a pr?, this is absolutely horrible to work with from mobile, and it's still quite a pain if I get back to the computer
—
Reply to this email directly, view it on GitHub<#358 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AU7SA4SHGSYKKZOYZGWCS6TVXF4VVANCNFSM55FEE5HA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
|
You need to create a fork, then push to your fork. From there you can open a PR to this repository. |
Thank you, already done: PR approved but not merged yet: #359 |
@RonnyPfannschmidt looks like this can be closed as completed. |
Please see details at: jaraco/keyring#582 (comment)
Suggestion for
pluggy._hooks:varnames
: useinspect.signature(func)
instead ofgetfullargspec
since it has the ability to follow wrapper chains (and that's actually the default behavior): https://docs.python.org/3/library/inspect.html#inspect.signatureAs can be seen in the mentioned comment above, the current code (pluggy 1.0.0) actually breaks/limits hook-implementations.
The text was updated successfully, but these errors were encountered: