Skip to content

Commit

Permalink
refactor: Put a default value to options
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Camilleri <[email protected]>
  • Loading branch information
Sarrabah and pierrecamilleri authored Jul 29, 2024
1 parent 3116b30 commit a15923f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frformat/enum_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class EnumFormat(CustomStrFormat):
May preprocess the input and valid values according to given "options"."""

def __init__(self, options: Optional[Options] = None):
self.options = options if options is not None else Options()
def __init__(self, options: Options = Options()):
self.options = options

_normalized_extra_values = {
normalize_value(e, self.options)
Expand Down

0 comments on commit a15923f

Please sign in to comment.