aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-03-04 13:49:06 -0800
committerEli Schwartz <eschwartz93@gmail.com>2025-03-06 23:02:04 -0500
commit3df6762f542a8bd6506a96bb2690a3d91d1a5ebc (patch)
treeae338c6228fa9a3d0dfccebaa95bffab754b44af
parentf64cda3d80f34db42cc59fefd3abbe904fc3231a (diff)
downloadmeson-3df6762f542a8bd6506a96bb2690a3d91d1a5ebc.zip
meson-3df6762f542a8bd6506a96bb2690a3d91d1a5ebc.tar.gz
meson-3df6762f542a8bd6506a96bb2690a3d91d1a5ebc.tar.bz2
environment: fix nullability of function parameter
-rw-r--r--mesonbuild/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 5169666..da29d6c 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -702,7 +702,7 @@ class Environment:
# Store a global state of Cargo dependencies
self.cargo: T.Optional[cargo.Interpreter] = None
- def mfilestr2key(self, machine_file_string: str, section_subproject: str, machine: MachineChoice) -> OptionKey:
+ def mfilestr2key(self, machine_file_string: str, section_subproject: T.Optional[str], machine: MachineChoice) -> OptionKey:
key = OptionKey.from_string(machine_file_string)
assert key.machine == MachineChoice.HOST
if key.subproject: