Skip to content

Commit 9956bf1

Browse files
authored
Replaced mutable argument default by None (#6541)
1 parent 0559666 commit 9956bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/plugins/search/plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ class Element:
312312
"""
313313

314314
# Initialize HTML element
315-
def __init__(self, tag, attrs = {}):
315+
def __init__(self, tag, attrs = None):
316316
self.tag = tag
317-
self.attrs = attrs
317+
self.attrs = attrs or {}
318318

319319
# String representation
320320
def __repr__(self):

0 commit comments

Comments
 (0)