decorators.py
4.28 KB
-
FIX: Don't default to list in method args · 7bb5fd27
Fixes @list_route and @detail_route so that they don't initialize their `methods` parameter as a list. In some cases the list gets cleared, and the result is that default parameter is now empty, and may get reused unexpectedly.
Greg Kempe committed