зеркало из https://github.com/microsoft/lisa.git
Linting Fixes
This commit is contained in:
Родитель
12715dd683
Коммит
0d023777af
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче