This commit is contained in:
Avram Lubkin 2022-10-25 13:48:29 -04:00 коммит произвёл LiliDeng
Родитель 12715dd683
Коммит 0d023777af
6 изменённых файлов: 18 добавлений и 14 удалений

Просмотреть файл

@ -17,7 +17,7 @@ from threading import Lock, Timer
from typing import Any, Dict, List, Optional, Tuple, Type, cast
import libvirt # type: ignore
import pycdlib
import pycdlib # type: ignore
import yaml
from lisa import schema, search_space

Просмотреть файл

@ -379,7 +379,10 @@ class SshShell(InitializableMixin):
self.spawn(command=["rm", path_str])
def chmod(self, path: PurePath, mode: int) -> None:
"""Change the file mode bits of each given file according to mode (Posix targets only)
"""
Change the file mode bits of each given file according to mode
(Posix targets only)
Inputs:
path: target path. (Absolute. Use a PurePosixPath, if the
target node is a Posix one, because LISA
@ -693,7 +696,10 @@ class LocalShell(InitializableMixin):
path.unlink()
def chmod(self, path: PurePath, mode: int) -> None:
"""Change the file mode bits of each given file according to mode (Posix targets only)
"""
Change the file mode bits of each given file according to mode
(Posix targets only)
Inputs:
path: target path. (Absolute)
mode: numerical chmod mode entry

Просмотреть файл

@ -2,7 +2,6 @@ from typing import Any
from .assertpy import AssertionBuilder
class BaseMixin:
description: Any = ...
def described_as(self, description: Any) -> AssertionBuilder: ...

Просмотреть файл

@ -1,7 +1,6 @@
from .hooks import HookimplMarker as HookimplMarker, HookspecMarker as HookspecMarker
from .manager import (
PluginManager as PluginManager,
PluginValidationError as PluginValidationError,
)
from .hooks import HookimplMarker as HookimplMarker
from .hooks import HookspecMarker as HookspecMarker
from .manager import PluginManager as PluginManager
from .manager import PluginValidationError as PluginValidationError
class HookCallError(Exception): ...

Просмотреть файл

@ -1,9 +1,8 @@
from .hooks import (
HookImpl as HookImpl,
normalize_hookimpl_opts as normalize_hookimpl_opts,
)
from typing import Any, Optional
from .hooks import HookImpl as HookImpl
from .hooks import normalize_hookimpl_opts as normalize_hookimpl_opts
class PluginValidationError(Exception):
plugin: Any = ...
def __init__(self, plugin: Any, message: Any) -> None: ...

Просмотреть файл

@ -2,8 +2,9 @@
This type stub file was generated by pyright.
"""
import argparse
from __future__ import print_function
import argparse
from typing import (
Any,
Dict,