mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
Update StyleDict.copy's description
This commit is contained in:
parent
9c3c750e09
commit
7abfcb9e75
@ -85,12 +85,11 @@ class StyleDict(dict):
|
||||
value = self[key]
|
||||
return value if value != 'currentColor' else self['color']
|
||||
|
||||
def copy(self, update=None):
|
||||
"""Copy the ``StyleDict``."""
|
||||
def copy(self, update):
|
||||
"""Copy the ``StyleDict`` with updated values."""
|
||||
style = type(self)(self)
|
||||
style.update(update)
|
||||
style.anonymous = self.anonymous
|
||||
if update:
|
||||
style.update(update)
|
||||
return style
|
||||
|
||||
def inherit_from(self):
|
||||
|
Loading…
Reference in New Issue
Block a user