1
0
Fork 0
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:
Peter Bieringer 2024-03-02 07:42:39 +01:00
parent cc2e1553d3
commit 551b5c2272
5 changed files with 10 additions and 5 deletions

View file

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