mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Restrict "params" to list or None
This commit is contained in:
parent
82c3999bc9
commit
f4d9c44e31
|
@ -41,14 +41,9 @@ def cmd_rmdir(path: str) -> str:
|
||||||
def cmd_nmake(
|
def cmd_nmake(
|
||||||
makefile: str | None = None,
|
makefile: str | None = None,
|
||||||
target: str = "",
|
target: str = "",
|
||||||
params: str | list[str] | tuple[str, ...] = None,
|
params: list[str] | None = None,
|
||||||
) -> str:
|
) -> str:
|
||||||
if params is None:
|
params = "" if params is None else " ".join(params)
|
||||||
params = ""
|
|
||||||
elif isinstance(params, (list, tuple)):
|
|
||||||
params = " ".join(params)
|
|
||||||
else:
|
|
||||||
params = str(params)
|
|
||||||
|
|
||||||
return " ".join(
|
return " ".join(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user