Skip to content

Commit bca66d4

Browse files
author
Sven Groot
committed
Fix do not use mutable data structures for argument defaults B006
1 parent e7ed01f commit bca66d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inertia/test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ def assertComponentUsed(self, component_name):
9696
def inertia_page(
9797
url,
9898
component="TestComponent",
99-
props={},
100-
template_data={},
99+
props=None,
100+
template_data=None,
101101
deferred_props=None,
102102
merge_props=None,
103103
):
104+
props = props or {}
105+
template_data = template_data or {}
104106
_page = {
105107
"component": component,
106108
"props": props,

0 commit comments

Comments
 (0)