From 6ad8f88fd1fc46629b31d8f43e4976ff06b8e6fd Mon Sep 17 00:00:00 2001 From: timeshifter Date: Thu, 2 Dec 2021 14:55:03 +0100 Subject: [PATCH] refactor: Optional -> pipe | --- zfs-backup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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