You need to pass in the result of vars(args)
instead:
M(**vars(args))
The vars()
function returns the namespace of the Namespace instance (its __dict__
attribute) as a dictionary.
Inside M.__init__()
, simply ignore the message_type
key.
You need to pass in the result of vars(args)
instead:
M(**vars(args))
The vars()
function returns the namespace of the Namespace instance (its __dict__
attribute) as a dictionary.
Inside M.__init__()
, simply ignore the message_type
key.