Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Oct 23, 2021
1 parent 59ec27d commit e29a937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion luigi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
'FloatParameter', 'BoolParameter', 'TaskParameter',
'ListParameter', 'TupleParameter', 'EnumParameter', 'DictParameter',
'configuration', 'interface', 'local_target', 'run', 'build', 'event', 'Event',
'NumericalParameter', 'ChoiceParameter', 'OptionalParameter',
'NumericalParameter', 'ChoiceParameter', 'OptionalParameter', 'OptionalStrParameter',
'OptionalIntParameter', 'OptionalFloatParameter', 'OptionalBoolParameter',
'OptionalDictParameter', 'OptionalListParameter', 'OptionalTupleParameter',
'OptionalChoiceParameter', 'OptionalNumericalParameter', 'LuigiStatusCode',
Expand Down
5 changes: 4 additions & 1 deletion test/parameter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ class TestConfig(luigi.Config):
param = luigi.OptionalParameter()

TestConfig(param=1)
warnings.warn.assert_called_once_with('OptionalParameter "param" with value "1" is not of type "str" or None.', luigi.parameter.OptionalParameterTypeWarning)
warnings.warn.assert_called_once_with(
'OptionalParameter "param" with value "1" is not of type "str" or None.',
luigi.parameter.OptionalParameterTypeWarning
)

def test_optional_parameter_parse_none(self):
self.assertIsNone(luigi.OptionalParameter().parse(''))
Expand Down

0 comments on commit e29a937

Please sign in to comment.