So I wrote something like this in some production code and expected it to work,
note that this isn’t the actual production code, but just a representative.
class Digital:
def __init__(self,**args):
if args:
self.acts(args)
def acts(self,**kwargs):
print(kwargs) #Let's just go with this for the sake of the example.
Now on instantiating the class with some key word arguments, a TypeError is raised saying that the function can only take in 1 positional argument but 2 were given.
This doesn’t occur for any other type of arguments except dictionaries and keyword args.
Someone with more expertise about this, please help.