(param1)() got an unexpected keyword argument (!r)
Package:
wheel
251
Exception Class:
TypeError
Raise code
ot kwargs:
return False
elif len(kwargs) > 1 or "warn" not in kwargs:
kwargs.pop("warn", None)
arg = next(iter(kwargs.keys()))
raise TypeError(
"{}() got an unexpected keyword argument {!r}".format(func_name, arg)
)
return kwargs["warn"]
def _get
Links to the raise (1)
https://github.com/pypa/wheel/blob/6e86e6b886d7744cba1faa80bf3d12c8ac8db3f8/src/wheel/vendored/packaging/tags.py#L167See also in the other packages (1)
(❌️ No answer)
pipenv/param1-got-an-unexpected-keyword-
Ways to fix
Summary: Only one argument can be passed to the function, and it must be "warn"
Code to reproduce (WRONG):
from wheel.vendored.packaging import tags
tags.interpreter_version(key='value')
Working version (Fixed):
from wheel.vendored.packaging import tags
tags.interpreter_version(warn='value')
Add a possible fix
Please authorize to post fix