From bcb5400e344805cacb3d1dc8b765b0d07193e7a4 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 26 Jul 2021 15:54:56 -0700 Subject: [PATCH] interpreter/compiler: Add type annotations to TryRunResultHolder --- mesonbuild/interpreter/compiler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mesonbuild/interpreter/compiler.py b/mesonbuild/interpreter/compiler.py index 5cc5a6109..1050e26c2 100644 --- a/mesonbuild/interpreter/compiler.py +++ b/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 = {