From 6f562ed734f2a1df13dca399f04c996d9493a2f1 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 2 Jun 2021 13:29:19 -0700 Subject: [PATCH] interpreterobjects: Fix type annotation for CustomTargetHolder --- mesonbuild/interpreter/interpreterobjects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index c70b8b5a1..61720c847 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -947,7 +947,7 @@ class CustomTargetIndexHolder(TargetHolder[build.CustomTargetIndex]): def full_path_method(self, args, kwargs): return self.interpreter.backend.get_target_filename_abs(self.held_object) -class CustomTargetHolder(TargetHolder): +class CustomTargetHolder(TargetHolder[build.CustomTarget]): def __init__(self, target: 'build.CustomTarget', interp: 'Interpreter'): super().__init__(target, interp) self.methods.update({'full_path': self.full_path_method,