From 61869b12edd970998e235c86fcf72b189445c6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 19 Oct 2020 09:29:51 +0100 Subject: Improve documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- src/tox/execute/request.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tox/execute/request.py') diff --git a/src/tox/execute/request.py b/src/tox/execute/request.py index 9f4fe415..328499b2 100644 --- a/src/tox/execute/request.py +++ b/src/tox/execute/request.py @@ -1,13 +1,16 @@ +"""Module declaring a command execution request.""" import sys from pathlib import Path from typing import Dict, List, Sequence, Union class ExecuteRequest: + """Defines a commands execution request""" + def __init__(self, cmd: Sequence[Union[str, Path]], cwd: Path, env: Dict[str, str], allow_stdin: bool): if len(cmd) == 0: raise ValueError("cannot execute an empty command") - self.cmd = [str(i) for i in cmd] # type: List[str] + self.cmd: List[str] = [str(i) for i in cmd] self.cwd = cwd self.env = env self.allow_stdin = allow_stdin -- cgit v1.2.1