mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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(
|
||||
makefile: str | None = None,
|
||||
target: str = "",
|
||||
params: str | list[str] | tuple[str, ...] = None,
|
||||
params: list[str] | None = None,
|
||||
) -> str:
|
||||
if params is None:
|
||||
params = ""
|
||||
elif isinstance(params, (list, tuple)):
|
||||
params = " ".join(params)
|
||||
else:
|
||||
params = str(params)
|
||||
params = "" if params is None else " ".join(params)
|
||||
|
||||
return " ".join(
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue
Block a user