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:
parent
e0f7fe6526
commit
f25d7eebb8
3 changed files with 7 additions and 6 deletions
|
@ -20,7 +20,7 @@ The multifilesystem backend without file-based locking.
|
|||
|
||||
import threading
|
||||
from collections import deque
|
||||
from typing import Deque, Dict, Hashable, Iterator
|
||||
from typing import ClassVar, Deque, Dict, Hashable, Iterator, Type
|
||||
|
||||
from radicale import config, pathutils, types
|
||||
from radicale.storage import multifilesystem
|
||||
|
@ -103,7 +103,7 @@ class Collection(multifilesystem.Collection):
|
|||
|
||||
class Storage(multifilesystem.Storage):
|
||||
|
||||
_collection_class = Collection
|
||||
_collection_class: ClassVar[Type[Collection]] = Collection
|
||||
|
||||
_cache_lock: LockDict
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue