aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2022-03-04 14:27:25 -0600
committerDylan Baker <dylan@pnwbakers.com>2022-03-04 14:59:02 -0800
commit1960810d64d110f1d039c89681faf7e86c5dc3f5 (patch)
tree0fc0ebcbe27dfb3249dc44a0395932f40e12d89e /mesonbuild/modules
parent498db2764c6d8bf9c9362b77a4011d8197879460 (diff)
downloadmeson-1960810d64d110f1d039c89681faf7e86c5dc3f5.zip
meson-1960810d64d110f1d039c89681faf7e86c5dc3f5.tar.gz
meson-1960810d64d110f1d039c89681faf7e86c5dc3f5.tar.bz2
Fix @typed_pos args on java.generate_native_header
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/java.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/modules/java.py b/mesonbuild/modules/java.py
index dc660a7..9d325c7 100644
--- a/mesonbuild/modules/java.py
+++ b/mesonbuild/modules/java.py
@@ -19,7 +19,6 @@ from mesonbuild import mesonlib
from mesonbuild.build import CustomTarget
from mesonbuild.compilers import detect_compiler_for
from mesonbuild.interpreterbase.decorators import ContainerTypeInfo, FeatureDeprecated, FeatureNew, KwargInfo, typed_pos_args, typed_kwargs
-from mesonbuild.interpreter.interpreterobjects import FileHolder
from mesonbuild.mesonlib import version_compare, MachineChoice
from . import ExtensionModule, ModuleReturnValue, ModuleState
from ..interpreter import Interpreter
@@ -38,7 +37,7 @@ class JavaModule(ExtensionModule):
self.javac = interpreter.environment.coredata.compilers[MachineChoice.BUILD]['java']
@FeatureDeprecated('java.generate_native_header', '0.62.0', 'Use java.generate_native_headers instead')
- @typed_pos_args('generate_native_header', (str, FileHolder))
+ @typed_pos_args('java.generate_native_header', (str, mesonlib.File))
@typed_kwargs('java.generate_native_header', KwargInfo('package', str, default=None))
def generate_native_header(self, state: ModuleState, args: T.Tuple[T.Union[str, FileHolder]],
kwargs: T.Dict[str, T.Optional[str]]) -> ModuleReturnValue: