mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-02 15:40:19 +00:00
workaround for old pydantic version (#376)
This commit is contained in:
parent
d13b38ee1e
commit
b931544650
@ -141,9 +141,9 @@ class Mapping(BaseModel):
|
||||
return str(self.dict(exclude_defaults=True))
|
||||
|
||||
if needs_workaround:
|
||||
|
||||
# https://github.com/samuelcolvin/pydantic/issues/1383
|
||||
def copy(self, *args, **kwargs) -> Mapping:
|
||||
copy = super(Mapping, self).copy(*args, **kwargs)
|
||||
copy = super(Mapping, self).copy(*args, deep=True, **kwargs)
|
||||
object.__setattr__(copy, "_combination_changed", self._combination_changed)
|
||||
return copy
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user