Skip to content

Commit

Permalink
environment: fix nullability of function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Mar 5, 2025
1 parent 0dffe9a commit afbaa91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def __init__(self, source_dir: str, build_dir: str, cmd_options: coredata.Shared
# 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:
Expand Down

0 comments on commit afbaa91

Please sign in to comment.