Skip to content

Commit

Permalink
fixed config loading to use all dataclass base classes instead of jus…
Browse files Browse the repository at this point in the history
…t config
  • Loading branch information
johnhenning committed Mar 16, 2020
1 parent 346de5c commit c2da3e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frater/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def process_config_value(annotation_type: type, value):
return [process_config_value(list_type, item) for item in value]
elif annotation_type is Dict:
return dict(value)
elif issubclass(annotation_type, Config):
elif issubclass(annotation_type, DataClassJsonMixin):
return annotation_type.from_dict(value)
else:
return value
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='frater',
version='0.3.1.10',
version='0.3.1.11',
packages=packages,
license='MIT',
url='https://github.com/frater-sdk/frater',
Expand Down

0 comments on commit c2da3e7

Please sign in to comment.