diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2023-01-06 11:34:01 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-01-10 09:53:22 -0800 |
commit | a28545d9cbf93c4d34bd6e0ee82740459398a97f (patch) | |
tree | a9e39491b0946534d383bebe70f89cc840de7ba1 /mesonbuild/modules | |
parent | 4c3d9ab22d5dcffd80fa1fc61b382bf95e96d11b (diff) | |
download | meson-a28545d9cbf93c4d34bd6e0ee82740459398a97f.zip meson-a28545d9cbf93c4d34bd6e0ee82740459398a97f.tar.gz meson-a28545d9cbf93c4d34bd6e0ee82740459398a97f.tar.bz2 |
modules/external_project: `make` should be immutable
In some cases we'll get an `ImmutableListProtocol[str]` anyway (and
actually, we should probably be getting one in call cases), since we
don't mutate it anyway, just store it as immutable.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/external_project.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/modules/external_project.py b/mesonbuild/modules/external_project.py index d296052..087850b 100644 --- a/mesonbuild/modules/external_project.py +++ b/mesonbuild/modules/external_project.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import annotations from pathlib import Path import os import shlex @@ -33,9 +34,10 @@ if T.TYPE_CHECKING: from typing_extensions import TypedDict from . import ModuleState + from .._typing import ImmutableListProtocol + from ..build import BuildTarget, CustomTarget from ..interpreter import Interpreter from ..interpreterbase import TYPE_var - from ..build import BuildTarget, CustomTarget class Dependency(TypedDict): @@ -51,6 +53,9 @@ if T.TYPE_CHECKING: class ExternalProject(NewExtensionModule): + + make: ImmutableListProtocol[str] + def __init__(self, state: 'ModuleState', configure_command: str, |