django-nh3 icon indicating copy to clipboard operation
django-nh3 copied to clipboard

Fix mutable default argument values

Open g-nie opened this issue 8 months ago • 0 comments

Hey there, I noticed some function arguments using mutable types (sets, dicts) as default values. While this doesn't appear to cause issues right now, it could lead to unexpected behavior if any future code modifies these default objects. I thought to change the defaults to None and initialize them in the __init__s if needed. What do you think?

g-nie avatar Apr 08 '25 11:04 g-nie