Skip to content

Commit

Permalink
Merge 90295c4 into 5955d09
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Jun 17, 2024
2 parents 5955d09 + 90295c4 commit 7505057
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 98 deletions.
4 changes: 2 additions & 2 deletions anystore/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JsonMixin:

@classmethod
def from_json_str(cls, data: str, **kwargs) -> Self:
loaded = clean_dict({**orjson.loads(data), **kwargs})
loaded = clean_dict({**orjson.loads(data), **clean_dict(kwargs)})
return cls(**loaded)

@classmethod
Expand All @@ -46,7 +46,7 @@ class YamlMixin:

@classmethod
def from_yaml_str(cls, data: str, **kwargs) -> Self:
loaded = clean_dict({**yaml.safe_load(data), **kwargs})
loaded = clean_dict({**yaml.safe_load(data), **clean_dict(kwargs)})
return cls(**loaded)

@classmethod
Expand Down
Loading

0 comments on commit 7505057

Please sign in to comment.