1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Change _collection_class to ClassVar

This commit is contained in:
Unrud 2021-12-12 20:05:11 +01:00
parent e0f7fe6526
commit f25d7eebb8
3 changed files with 7 additions and 6 deletions

View file

@ -18,7 +18,7 @@
import os
from tempfile import TemporaryDirectory
from typing import IO, AnyStr, Iterator, Optional, Type
from typing import IO, AnyStr, ClassVar, Iterator, Optional, Type
from radicale import config, pathutils, storage, types
from radicale.storage import multifilesystem # noqa:F401
@ -62,7 +62,8 @@ class CollectionBase(storage.BaseCollection):
class StorageBase(storage.BaseStorage):
_collection_class: Type["multifilesystem.Collection"]
_collection_class: ClassVar[Type["multifilesystem.Collection"]]
_filesystem_folder: str
_filesystem_fsync: bool