We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
P = ParamSpec("P") R = TypeVar("R") def dec_test(func: Callable[P, R]) -> Callable[P, R]: @wraps(func) def inner(*args: P.args, **kwargs: P.kwargs) -> R: for a in args: print(a) for arg_k, arg_v in kwargs.items(): print(f"{arg_k},{arg_v}" return func(*args, **kwargs) return inner
Expected Behavior P.args should be iterable P.kwargs should have items()
Actual Behavior "P.args" has no attribute "iter" (not iterable) "P.kwargs" has no attribute "items" Your Environment
The text was updated successfully, but these errors were encountered:
Duplicate of #12386
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
P.args should be iterable
P.kwargs should have items()
Actual Behavior
"P.args" has no attribute "iter" (not iterable)
"P.kwargs" has no attribute "items"
Your Environment
The text was updated successfully, but these errors were encountered: