Skip to content

Commit

Permalink
minor code style
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Aug 27, 2024
1 parent 4fb6be0 commit e164030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdci_data_analysis/analysis/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def __init__(self, *args, **kwargs):
kwargs['allowed_types'] = [int, float]

if kwargs.get('default_type') is None:
val = kwargs['value'] if kwargs.get('value', 'notset') != 'notset' else args[0]
val = kwargs['value'] if 'value' in kwargs.keys() else args[0]
if type(val) in kwargs['allowed_types']:
kwargs['default_type'] = type(val)
else:
Expand Down

0 comments on commit e164030

Please sign in to comment.