refactor: Optional -> pipe |

This commit is contained in:
timeshifter
2021-12-02 14:55:03 +01:00
parent 65dc88e2ea
commit 6ad8f88fd1
+1 -2
View File
@@ -9,7 +9,6 @@ from pathlib import Path
from re import search from re import search
from subprocess import PIPE, Popen, call, check_output from subprocess import PIPE, Popen, call, check_output
from sys import exit from sys import exit
from typing import Optional # TODO replace with pipe notation
from uuid import UUID from uuid import UUID
import config import config
@@ -129,7 +128,7 @@ def _get_regex_matching_snapshots_with_tags(tags: list[str]):
class ZFSPath: 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._elements = elements
self._snapname = snapname self._snapname = snapname
self._is_snapshot = False self._is_snapshot = False