interpreter/compiler: Add type annotations to TryRunResultHolder

pull/9132/head
Dylan Baker 3 years ago
parent 7dda90f1bf
commit bcb5400e34
  1. 8
      mesonbuild/interpreter/compiler.py

@ -29,22 +29,22 @@ class TryRunResultHolder(ObjectHolder['RunResult']):
@noPosargs @noPosargs
@noKwargs @noKwargs
def returncode_method(self, args, kwargs): def returncode_method(self, args: T.List['TYPE_var'], kwargs: 'TYPE_kwargs') -> int:
return self.held_object.returncode return self.held_object.returncode
@noPosargs @noPosargs
@noKwargs @noKwargs
def compiled_method(self, args, kwargs): def compiled_method(self, args: T.List['TYPE_var'], kwargs: 'TYPE_kwargs') -> bool:
return self.held_object.compiled return self.held_object.compiled
@noPosargs @noPosargs
@noKwargs @noKwargs
def stdout_method(self, args, kwargs): def stdout_method(self, args: T.List['TYPE_var'], kwargs: 'TYPE_kwargs') -> str:
return self.held_object.stdout return self.held_object.stdout
@noPosargs @noPosargs
@noKwargs @noKwargs
def stderr_method(self, args, kwargs): def stderr_method(self, args: T.List['TYPE_var'], kwargs: 'TYPE_kwargs') -> str:
return self.held_object.stderr return self.held_object.stderr
header_permitted_kwargs = { header_permitted_kwargs = {

Loading…
Cancel
Save