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