mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-25 19:30:54 +00:00
Type hints for tests
This commit is contained in:
parent
698ae875ce
commit
60f25bf19a
12 changed files with 501 additions and 379 deletions
|
@ -23,7 +23,8 @@ from radicale import pathutils, rights
|
|||
|
||||
|
||||
class Rights(rights.BaseRights):
|
||||
def authorization(self, user, path):
|
||||
|
||||
def authorization(self, user: str, path: str) -> str:
|
||||
sane_path = pathutils.strip_path(path)
|
||||
if sane_path not in ("tmp", "other"):
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue