Skip to content

Commit

Permalink
__nirum_field_types__ is always callable
Browse files Browse the repository at this point in the history
  • Loading branch information
kanghyojun committed Feb 20, 2018
1 parent bd17d5e commit 9695195
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Nirum/Targets/Python.hs
Original file line number Diff line number Diff line change
Expand Up @@ -963,10 +963,7 @@ class $className(object):
)
args = dict()
behind_names = cls.__nirum_field_names__.behind_names
field_types = cls.__nirum_field_types__
if callable(field_types):
field_types = field_types()
# old compiler could generate non-callable dictionary
field_types = cls.__nirum_field_types__()
errors = set()
for attribute_name, item in value.items():
if attribute_name == '_type':
Expand Down

0 comments on commit 9695195

Please sign in to comment.