Closed flosincapite closed 3 years ago
I think replacing a dict argument with something non-mutable is fine, but changing to **kwargs
creates the possibility of name collisions, and removes the possibility for future expansion. It isn't needed here.
Fair enough! I changed it to a default value of None
.
Mutable objects as default arguments can produce subtle bugs.
**kwargs
is also more idiomatic.