mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Adapt function template discovery to the implementation
This commit is contained in:
parent
040a433696
commit
d1ceb620e4
3 changed files with 13 additions and 8 deletions
|
@ -19,7 +19,7 @@
|
|||
import os
|
||||
import posixpath
|
||||
import base64
|
||||
from typing import Callable, ContextManager, Iterator, Optional, cast
|
||||
from typing import Callable, ContextManager, Iterator, Optional, Set, cast
|
||||
|
||||
from radicale import pathutils, types
|
||||
from radicale.log import logger
|
||||
|
@ -36,9 +36,10 @@ def _null_child_context_manager(path: str,
|
|||
class StoragePartDiscover(StorageBase):
|
||||
|
||||
def discover(
|
||||
self, path: str, depth: str = "0", child_context_manager: Optional[
|
||||
Callable[[str, Optional[str]], ContextManager[None]]] = None,
|
||||
user_groups: Set[str] = set([])
|
||||
self, path: str, depth: str = "0",
|
||||
child_context_manager: Optional[
|
||||
Callable[[str, Optional[str]], ContextManager[None]]] = None,
|
||||
user_groups: Set[str] = set([])
|
||||
) -> Iterator[types.CollectionOrItem]:
|
||||
# assert isinstance(self, multifilesystem.Storage)
|
||||
if child_context_manager is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue