-
Notifications
You must be signed in to change notification settings - Fork 126
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
Why pluggy
ignore hookimpl
kwargsnames?
#522
Comments
Currently default args are ignored The discussion on support for them for forward or backward compatibility has not yet yielded implementations |
@RonnyPfannschmidt Where can I find the related discussion? If it's not going to be implemented soon, does it makes sense to document this behavior for the time being? It would be great to get a view from Something like `keyword arguments is not supported yet" is good enough. |
I agree, documenting the current status would be good. Also the original post is a bit confusing, because the example is using a default value but mentioning keyword arguments, which are separate topics. |
Description
I try to set default argument for a hook and find it does not work.
It seems like if I use a
kwargs
,pluggy
will ignore this argument and won't call it anymore. I can see thatHookImpl
stores bothkwargsnames
andargnames
but onlyargnames
are called. Is this intentional or bug? I try to search in the docs but couldn't find anything related.Context
pluggy/src/pluggy/_callers.py
Lines 71 to 73 in 5c16e15
In docs, it said:
But it never mentioned keywords arguments cannot be used.
p.s. I did a bit more digging, it seems that
kwargnames
is never used anywhere in the source code other than saving it as an attribute.The text was updated successfully, but these errors were encountered: