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
@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
@noPosargs
@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
@noPosargs
@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
@noPosargs
@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
header_permitted_kwargs = {

Loading…
Cancel
Save