fix typos

This commit is contained in:
timeshifter
2022-12-06 14:26:00 +01:00
parent 8735251671
commit da6d6f1cc4
+3 -2
View File
@@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import annotations from __future__ import annotations
@@ -710,7 +711,7 @@ class Dataset:
@property @property
def snapshots(self) -> list[Snapshot]: def snapshots(self) -> list[Snapshot]:
"""get qualified snapshot names that are direct children of the dataset""" """get qualified snapshots that are direct children of the dataset"""
return ZFS.get_snapshots(self) return ZFS.get_snapshots(self)
def replace_pool(self, name: str) -> Dataset: def replace_pool(self, name: str) -> Dataset:
@@ -792,7 +793,7 @@ class CommandRunner:
@staticmethod @staticmethod
def _to_list(command: str | list[str]) -> list[str]: def _to_list(command: str | list[str]) -> list[str]:
"""If the command is a str, return it as list. Otherwise return the command.""" """If the command is a str, return it as list. Otherwise, return the command."""
if isinstance(command, str): if isinstance(command, str):
return [command] return [command]
return command return command