fix typos
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -710,7 +711,7 @@ class Dataset:
|
||||
|
||||
@property
|
||||
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)
|
||||
|
||||
def replace_pool(self, name: str) -> Dataset:
|
||||
@@ -792,7 +793,7 @@ class CommandRunner:
|
||||
|
||||
@staticmethod
|
||||
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):
|
||||
return [command]
|
||||
return command
|
||||
|
||||
Reference in New Issue
Block a user