diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-11-16 14:48:40 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-11-17 19:07:15 -0500 |
commit | e45367169f1cffd0a1c5566907227ec305cbe25e (patch) | |
tree | 99443ed1db6511248b2ebf1a19cfcda6f5c5e629 | |
parent | 32b14b1bb533e10c7344c2e04125a226553c9b9f (diff) | |
download | meson-e45367169f1cffd0a1c5566907227ec305cbe25e.zip meson-e45367169f1cffd0a1c5566907227ec305cbe25e.tar.gz meson-e45367169f1cffd0a1c5566907227ec305cbe25e.tar.bz2 |
build: fix annotations of BuildTarget derived classes
Which thinks `sources` should be `List[File]`, but they should be
`List[SourceOutputs]`
-rw-r--r-- | mesonbuild/build.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 3f35c31..c27a77e 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1784,7 +1784,7 @@ class Executable(BuildTarget): typename = 'executable' def __init__(self, name: str, subdir: str, subproject: str, for_machine: MachineChoice, - sources: T.List[File], structured_sources: T.Optional['StructuredSources'], + sources: T.List[SourceOutputs], structured_sources: T.Optional['StructuredSources'], objects, environment: environment.Environment, compilers: T.Dict[str, 'Compiler'], kwargs): key = OptionKey('b_pie') @@ -1913,7 +1913,7 @@ class StaticLibrary(BuildTarget): typename = 'static library' def __init__(self, name: str, subdir: str, subproject: str, for_machine: MachineChoice, - sources: T.List[File], structured_sources: T.Optional['StructuredSources'], + sources: T.List[SourceOutputs], structured_sources: T.Optional['StructuredSources'], objects, environment: environment.Environment, compilers: T.Dict[str, 'Compiler'], kwargs): self.prelink = kwargs.get('prelink', False) @@ -1985,7 +1985,7 @@ class SharedLibrary(BuildTarget): typename = 'shared library' def __init__(self, name: str, subdir: str, subproject: str, for_machine: MachineChoice, - sources: T.List[File], structured_sources: T.Optional['StructuredSources'], + sources: T.List[SourceOutputs], structured_sources: T.Optional['StructuredSources'], objects, environment: environment.Environment, compilers: T.Dict[str, 'Compiler'], kwargs): self.soversion = None @@ -2324,7 +2324,7 @@ class SharedModule(SharedLibrary): typename = 'shared module' def __init__(self, name: str, subdir: str, subproject: str, for_machine: MachineChoice, - sources: T.List[File], structured_sources: T.Optional['StructuredSources'], + sources: T.List[SourceOutputs], structured_sources: T.Optional['StructuredSources'], objects, environment: environment.Environment, compilers: T.Dict[str, 'Compiler'], kwargs): if 'version' in kwargs: @@ -2694,7 +2694,7 @@ class Jar(BuildTarget): typename = 'jar' def __init__(self, name: str, subdir: str, subproject: str, for_machine: MachineChoice, - sources: T.List[File], structured_sources: T.Optional['StructuredSources'], + sources: T.List[SourceOutputs], structured_sources: T.Optional['StructuredSources'], objects, environment: environment.Environment, compilers: T.Dict[str, 'Compiler'], kwargs): super().__init__(name, subdir, subproject, for_machine, sources, structured_sources, objects, |