diff --git a/radicale/httputils.py b/radicale/httputils.py index 04898b40..3983d7eb 100644 --- a/radicale/httputils.py +++ b/radicale/httputils.py @@ -42,7 +42,10 @@ import importlib.abc from importlib import resources - _TRAVERSABLE_LIKE_TYPE = Union[importlib.abc.Traversable, pathlib.Path] + if sys.version_info < (3, 13): + _TRAVERSABLE_LIKE_TYPE = Union[importlib.abc.Traversable, pathlib.Path] + else: + _TRAVERSABLE_LIKE_TYPE = Union[importlib.resources.abc.Traversable, pathlib.Path] NOT_ALLOWED: types.WSGIResponse = ( client.FORBIDDEN, (("Content-Type", "text/plain"),),