votes up 1

(param1)() got an unexpected keyword argument (!r)

Exception Class:

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
😲  Walkingbet is Android app that pays you real bitcoins for a walking. Withdrawable real money bonus is available now, hurry up! 🚶

Ways to fix

votes up 3 votes down

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

Working version (Fixed):

from wheel.vendored.packaging import tags
Jun 02, 2021 phoang88 answer
phoang88 615

Add a possible fix

Please authorize to post fix