diff options
author | William Deegan <bill@baddogconsulting.com> | 2023-05-03 18:20:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 18:20:24 -0700 |
commit | 5717e06c245d99923f5c4a6e786a564799871c49 (patch) | |
tree | 9f61127c1b9bbb2e30a39b316b0f4f3d8430333d /SCons/Tool/ninja/__init__.py | |
parent | fb846e7091c4b0dbe136ab33eb940b2502a94a29 (diff) | |
parent | f85193fbbfa29e5dff26d12b32726c9638481fba (diff) | |
download | scons-git-5717e06c245d99923f5c4a6e786a564799871c49.tar.gz |
Merge pull request #4346 from mwichmann/maint/cheap-typing
Add some cheap return and parameter annotations
Diffstat (limited to 'SCons/Tool/ninja/__init__.py')
-rw-r--r-- | SCons/Tool/ninja/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SCons/Tool/ninja/__init__.py b/SCons/Tool/ninja/__init__.py index 2622641d9..0ee72d2cf 100644 --- a/SCons/Tool/ninja/__init__.py +++ b/SCons/Tool/ninja/__init__.py @@ -136,7 +136,7 @@ def ninja_builder(env, target, source): sys.stdout.write("\n") -def options(opts): +def options(opts) -> None: """ Add command line Variables for Ninja builder. """ @@ -302,7 +302,7 @@ def generate(env): # instead return something that looks more expanded. So to # continue working even if a user has done this we map both the # "bracketted" and semi-expanded versions. - def robust_rule_mapping(var, rule, tool): + def robust_rule_mapping(var, rule, tool) -> None: provider = gen_get_response_file_command(env, rule, tool) env.NinjaRuleMapping("${" + var + "}", provider) @@ -459,7 +459,7 @@ def generate(env): # In the future we may be able to use this to actually cache the build.ninja # file once we have the upstream support for referencing SConscripts as File # nodes. - def ninja_execute(self): + def ninja_execute(self) -> None: target = self.targets[0] if target.get_env().get('NINJA_SKIP'): @@ -475,7 +475,7 @@ def generate(env): # date-ness. SCons.Script.Main.BuildTask.needs_execute = lambda x: True - def ninja_Set_Default_Targets(env, tlist): + def ninja_Set_Default_Targets(env, tlist) -> None: """ Record the default targets if they were ever set by the user. Ninja will need to write the default targets and make sure not to include |