Skip to content

Commit

Permalink
typing: Fix a couple of obvious typing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbheek committed Aug 7, 2024
1 parent 2231b65 commit 477118e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mesonbuild/modules/_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def has_tools(self, state: 'ModuleState', args: T.Tuple, kwargs: 'HasToolKwArgs'
# will insist this is wrong
disabled, required, feature = extract_required_kwarg(kwargs, state.subproject, default=False)
if disabled:
assert feature is not None, "for mypy"
mlog.log('qt.has_tools skipped: feature', mlog.bold(feature), 'disabled')
return False
self._detect_tools(state, method, required=False)
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _search_dir(self, name: str, search_dir: T.Optional[str]) -> T.Optional[list
return [trial_ext]
return None

def _search_windows_special_cases(self, name: str, command: str) -> T.List[T.Optional[str]]:
def _search_windows_special_cases(self, name: str, command: T.Optional[str]) -> T.List[T.Optional[str]]:
'''
Lots of weird Windows quirks:
1. PATH search for @name returns files with extensions from PATHEXT,
Expand Down

0 comments on commit 477118e

Please sign in to comment.