mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
fix for code validation
This commit is contained in:
parent
cc2e1553d3
commit
551b5c2272
5 changed files with 10 additions and 5 deletions
|
@ -61,6 +61,7 @@ class CollectionPartMeta(CollectionBase):
|
|||
return self._meta_cache if key is None else self._meta_cache.get(key)
|
||||
|
||||
def set_meta(self, props: Mapping[str, str]) -> None:
|
||||
with self._atomic_write(self._props_path, "w") as fo: # type: ignore # for now, TODO fix for "mypy"
|
||||
# TODO: better fix for "mypy"
|
||||
with self._atomic_write(self._props_path, "w") as fo: # type: ignore
|
||||
f = cast(TextIO, fo)
|
||||
json.dump(props, f, sort_keys=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue