Просмотр исходного кода

Remove trailing whitespaces and unsused import.

Dipl. Ing. Péter Varkoly 1 год назад
Родитель
Сommit
ccb59444c3
2 измененных файлов с 5 добавлено и 5 удалено
  1. 3 3
      radicale/storage/__init__.py
  2. 2 2
      radicale/storage/multifilesystem/discover.py

+ 3 - 3
radicale/storage/__init__.py

@@ -27,7 +27,7 @@ import json
 import xml.etree.ElementTree as ET
 from hashlib import sha256
 from typing import (Callable, ContextManager, Iterable, Iterator, Mapping,
-                    Optional, Sequence, Set, Tuple, Union, cast, overload)
+                    Optional, Sequence, Set, Tuple, Union, overload)
 
 import vobject
 
@@ -283,9 +283,9 @@ class BaseStorage:
         self.configuration = configuration
 
     def discover(
-            self, path: str, depth: str = "0", 
+            self, path: str, depth: str = "0",
             child_context_manager: Optional[
-            Callable[[str, Optional[str]], ContextManager[None]]] = None, 
+            Callable[[str, Optional[str]], ContextManager[None]]] = None,
             user_groups: Set[str] = set([])) -> Iterable["types.CollectionOrItem"]:
         """Discover a list of collections under the given ``path``.
 

+ 2 - 2
radicale/storage/multifilesystem/discover.py

@@ -36,9 +36,9 @@ def _null_child_context_manager(path: str,
 class StoragePartDiscover(StorageBase):
 
     def discover(
-            self, path: str, depth: str = "0", 
+            self, path: str, depth: str = "0",
             child_context_manager: Optional[
-            Callable[[str, Optional[str]], ContextManager[None]]] = None, 
+            Callable[[str, Optional[str]], ContextManager[None]]] = None,
             user_groups: Set[str] = set([])
             ) -> Iterator[types.CollectionOrItem]:
         # assert isinstance(self, multifilesystem.Storage)