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/Variables/BoolVariableTests.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/Variables/BoolVariableTests.py')
-rw-r--r-- | SCons/Variables/BoolVariableTests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SCons/Variables/BoolVariableTests.py b/SCons/Variables/BoolVariableTests.py index 868e7e085..9cf3ae137 100644 --- a/SCons/Variables/BoolVariableTests.py +++ b/SCons/Variables/BoolVariableTests.py @@ -27,7 +27,7 @@ import SCons.Errors import SCons.Variables class BoolVariableTestCase(unittest.TestCase): - def test_BoolVariable(self): + def test_BoolVariable(self) -> None: """Test BoolVariable creation""" opts = SCons.Variables.Variables() opts.Add(SCons.Variables.BoolVariable('test', 'test option help', False)) @@ -39,7 +39,7 @@ class BoolVariableTestCase(unittest.TestCase): assert o.validator is not None, o.validator assert o.converter is not None, o.converter - def test_converter(self): + def test_converter(self) -> None: """Test the BoolVariable converter""" opts = SCons.Variables.Variables() opts.Add(SCons.Variables.BoolVariable('test', 'test option help', False)) @@ -80,7 +80,7 @@ class BoolVariableTestCase(unittest.TestCase): caught = True assert caught, "did not catch expected ValueError for 'x'" - def test_validator(self): + def test_validator(self) -> None: """Test the BoolVariable validator""" opts = SCons.Variables.Variables() opts.Add(SCons.Variables.BoolVariable('test', 'test option help', False)) |