Django package that uses AWS Cognito and Warrant to create a Django backend and common views.
BSD 3-Clause "New" or "Revised" License
192
stars
62
forks
source link
Change mutable default method arguments to unmutables #10
Open
pydanny opened 6 years ago
https://github.com/MetaMetricsInc/django-warrant/blob/master/django_warrant/backend.py#L26 shows mutable arguments. This can cause unpredictable behavior at runtime.
I suggest changing the lists to tuples and the dicts to None.