refactor: Optional -> pipe |
This commit is contained in:
+1
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user