1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

ignore "mypy" type checks for now

This commit is contained in:
Peter Bieringer 2024-03-02 07:36:14 +01:00
parent 76e06ea3fc
commit cc2e1553d3
5 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@ class CollectionPartUpload(CollectionPartGet, CollectionPartCache,
raise ValueError("Failed to store item %r in collection %r: %s" %
(href, self.path, e)) from e
path = pathutils.path_to_filesystem(self._filesystem_path, href)
with self._atomic_write(path, newline="") as fo:
with self._atomic_write(path, newline="") as fo: # type: ignore # for now, TODO fix for "mypy"
f = cast(TextIO, fo)
f.write(item.serialize())
# Clean the cache after the actual item is stored, or the cache entry