From 9695195610ddd0c6ac616129548dc3c6a22b7d00 Mon Sep 17 00:00:00 2001 From: Kang Hyojun Date: Tue, 20 Feb 2018 20:13:27 +0900 Subject: [PATCH] __nirum_field_types__ is always callable --- src/Nirum/Targets/Python.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Nirum/Targets/Python.hs b/src/Nirum/Targets/Python.hs index e02282f..adb6417 100644 --- a/src/Nirum/Targets/Python.hs +++ b/src/Nirum/Targets/Python.hs @@ -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':