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/Platform/__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/Platform/__init__.py')
-rw-r--r-- | SCons/Platform/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SCons/Platform/__init__.py b/SCons/Platform/__init__.py index 3fa5a75e2..77eea5c09 100644 --- a/SCons/Platform/__init__.py +++ b/SCons/Platform/__init__.py @@ -130,14 +130,14 @@ def DefaultToolList(platform, env): class PlatformSpec: - def __init__(self, name, generate): + def __init__(self, name, generate) -> None: self.name = name self.generate = generate def __call__(self, *args, **kw): return self.generate(*args, **kw) - def __str__(self): + def __str__(self) -> str: return self.name @@ -192,7 +192,7 @@ class TempFileMunge: env["TEMPFILEARGESCFUNC"] = tempfile_arg_esc_func """ - def __init__(self, cmd, cmdstr = None): + def __init__(self, cmd, cmdstr = None) -> None: self.cmd = cmd self.cmdstr = cmdstr @@ -323,7 +323,7 @@ class TempFileMunge: return cmdlist - def _print_cmd_str(self, target, source, env, cmdstr): + def _print_cmd_str(self, target, source, env, cmdstr) -> None: # check if the user has specified a cmd line print function print_func = None try: |