diff --git a/zfs-backup.py b/zfs-backup.py index ed63f23..568c827 100755 --- a/zfs-backup.py +++ b/zfs-backup.py @@ -9,7 +9,6 @@ from pathlib import Path from re import search from subprocess import PIPE, Popen, call, check_output from sys import exit -from typing import Optional # TODO replace with pipe notation from uuid import UUID import config @@ -129,7 +128,7 @@ def _get_regex_matching_snapshots_with_tags(tags: list[str]): class ZFSPath: - def __init__(self, elements: list[str], snapname: Optional[str] = None): + def __init__(self, elements: list[str], snapname: str | None = None): self._elements = elements self._snapname = snapname self._is_snapshot = False