Skip to content

Commit

Permalink
Replaced mutable argument default by None (#6541)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisp committed Dec 19, 2023
1 parent 0559666 commit 9956bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/search/plugin.py
Expand Up @@ -312,9 +312,9 @@ class Element:
"""

# Initialize HTML element
def __init__(self, tag, attrs = {}):
def __init__(self, tag, attrs = None):
self.tag = tag
self.attrs = attrs
self.attrs = attrs or {}

# String representation
def __repr__(self):
Expand Down

0 comments on commit 9956bf1

Please sign in to comment.