interpreterobjects: Fix type annotation for CustomTargetHolder

pull/8838/head
Dylan Baker 4 years ago
parent ff0fd7d44c
commit 6f562ed734
  1. 2
      mesonbuild/interpreter/interpreterobjects.py

@ -947,7 +947,7 @@ class CustomTargetIndexHolder(TargetHolder[build.CustomTargetIndex]):
def full_path_method(self, args, kwargs): def full_path_method(self, args, kwargs):
return self.interpreter.backend.get_target_filename_abs(self.held_object) 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'): def __init__(self, target: 'build.CustomTarget', interp: 'Interpreter'):
super().__init__(target, interp) super().__init__(target, interp)
self.methods.update({'full_path': self.full_path_method, self.methods.update({'full_path': self.full_path_method,

Loading…
Cancel
Save