UoA-CARES / cares_reinforcement_learning

CARES Reinforcement Learning Package
11 stars 2 forks source link

Better Avoid using keywords as a variable's name. Type Error when calling create_memory(). #122

Closed qiaoting159753 closed 8 months ago

qiaoting159753 commented 8 months ago

TypeError: MemoryFactory.create_memory() got multiple values for argument 'args'.

Args is a keyword for arguments, so it is potentially overwriting a positional argument.

One solution is changing the name, e.g., changing the name 'args' to 'arg'.

Should avoid the common keywords that potentially aliases: min, max, next, break, args, kwargs et al.