fix: black

This commit is contained in:
timeshifter
2021-12-04 20:53:15 +01:00
parent f070a35937
commit 400316786e
+7 -5
View File
@@ -82,10 +82,10 @@ class Manager:
stream = self._send_absolute(local_dataset)
ZFS.receive(stream, self._external_pool)
def _send_incremental(self, local_dataset: Dataset, remote_dataset: Dataset) -> Popen:
start_snapshot = self._get_last_common_snapshot(
local_dataset, remote_dataset
)
def _send_incremental(
self, local_dataset: Dataset, remote_dataset: Dataset
) -> Popen:
start_snapshot = self._get_last_common_snapshot(local_dataset, remote_dataset)
end_snapshot = self._get_last_snapshot_with_backup_tag(local_dataset)
stream = ZFS.send_incremental(start_snapshot, end_snapshot)
return stream
@@ -118,7 +118,9 @@ class Manager:
]
@staticmethod
def _search_matching_dataset_in_remote_pool(dataset: Dataset, pool: Pool) -> Dataset | None:
def _search_matching_dataset_in_remote_pool(
dataset: Dataset, pool: Pool
) -> Dataset | None:
dataset_to_search = dataset.replace_pool(pool.name)
for dataset in pool.datasets:
if dataset == dataset_to_search: