diff --git a/vdirsyncer/storage/base.py b/vdirsyncer/storage/base.py index 19f62fc..13e1a99 100644 --- a/vdirsyncer/storage/base.py +++ b/vdirsyncer/storage/base.py @@ -75,7 +75,7 @@ class Storage(metaclass=StorageMeta): read_only = False # The attribute values to show in the representation of the storage. - _repr_attributes: list[str] = [] + _repr_attributes: tuple[str, ...] = () def __init__( self, diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index be25cc7..6aee4cb 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -451,7 +451,7 @@ class DAVStorage(Storage): connector: aiohttp.TCPConnector - _repr_attributes = ["username", "url"] + _repr_attributes = ("username", "url") _property_table = { "displayname": ("displayname", "DAV:"), diff --git a/vdirsyncer/storage/filesystem.py b/vdirsyncer/storage/filesystem.py index 71b185d..c650f6a 100644 --- a/vdirsyncer/storage/filesystem.py +++ b/vdirsyncer/storage/filesystem.py @@ -22,7 +22,7 @@ logger = logging.getLogger(__name__) class FilesystemStorage(Storage): storage_name = "filesystem" - _repr_attributes = ["path"] + _repr_attributes = ("path",) def __init__( self, diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index 40dbc25..a0e3289 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -23,7 +23,7 @@ logger = logging.getLogger(__name__) class HttpStorage(Storage): storage_name = "http" read_only = True - _repr_attributes = ["username", "url"] + _repr_attributes = ("username", "url") _items = None # Required for tests. diff --git a/vdirsyncer/storage/singlefile.py b/vdirsyncer/storage/singlefile.py index 5dafbcb..07f2e31 100644 --- a/vdirsyncer/storage/singlefile.py +++ b/vdirsyncer/storage/singlefile.py @@ -40,7 +40,7 @@ def _writing_op(f): class SingleFileStorage(Storage): storage_name = "singlefile" - _repr_attributes = ["path"] + _repr_attributes = ("path",) _write_mode = "wb" _append_mode = "ab"