backend/backends: Add type annotations to ExecutableSerilalisation

pull/9143/head
Dylan Baker 3 years ago committed by Daniel Mensinger
parent 6785504b53
commit a5b6b35edb
  1. 15
      mesonbuild/backend/backends.py

@ -149,9 +149,18 @@ class SubdirInstallData(InstallDataBase):
self.exclude = exclude
class ExecutableSerialisation:
def __init__(self, cmd_args, env: T.Optional[build.EnvironmentVariables] = None, exe_wrapper=None,
workdir=None, extra_paths=None, capture=None, feed=None,
tag: T.Optional[str] = None) -> None:
# XXX: should capture and feed default to False, instead of None?
def __init__(self, cmd_args: T.List[str],
env: T.Optional[build.EnvironmentVariables] = None,
exe_wrapper: T.Optional['programs.ExternalProgram'] = None,
workdir: T.Optional[str] = None,
extra_paths: T.Optional[T.List] = None,
capture: T.Optional[bool] = None,
feed: T.Optional[bool] = None,
tag: T.Optional[str] = None,
) -> None:
self.cmd_args = cmd_args
self.env = env
if exe_wrapper is not None:

Loading…
Cancel
Save