Replaced mutable argument default by None (#6541)

This commit is contained in:
Sigurd Spieckermann
2023-12-19 09:43:08 +01:00
committed by GitHub
parent 05596664a5
commit 9956bf1dc4

View File

@@ -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):