You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o+=f'{TABS(t)}if {attribute.name} is not None and not ({attribute.restriction}):\n{TABS(t+1)}raise {f"errors.InpError(errors.InpCode.SEMANTICS_OPTION_VALUE, {attribute.name})"ifparent_nameelsef"errors.InpError(errors.InpCode.SEMANTICS_CARD_VALUE, {attribute.name})"}\n'
149
+
o+=f'{TABS(t)}if {attribute.name} is not None and not ({attribute.restriction}):\n{TABS(t+1)}raise {f"errors.InpError(errors.InpCode.SEMANTICS_OPTION, {attribute.name})"ifparent_nameelsef"errors.InpError(errors.InpCode.SEMANTICS_CARD, {attribute.name})"}\n'
150
150
else:
151
-
o+=f'{TABS(t)}if {attribute.name} is None or not ({attribute.restriction}):\n{TABS(t+1)}raise {f"errors.InpError(errors.InpCode.SEMANTICS_OPTION_VALUE, {attribute.name})"ifparent_nameelsef"errors.InpError(errors.InpCode.SEMANTICS_CARD_VALUE, {attribute.name})"}\n'
151
+
o+=f'{TABS(t)}if {attribute.name} is None or not ({attribute.restriction}):\n{TABS(t+1)}raise {f"errors.InpError(errors.InpCode.SEMANTICS_OPTION, {attribute.name})"ifparent_nameelsef"errors.InpError(errors.InpCode.SEMANTICS_CARD, {attribute.name})"}\n'
152
152
else:
153
153
ifattribute.optional:
154
154
continue
155
155
else:
156
-
o+=f'{TABS(t)}if {attribute.name} is None:\n{TABS(t+1)}raise {f"errors.InpError(errors.InpCode.SEMANTICS_OPTION_VALUE, {attribute.name})"ifparent_nameelsef"errors.InpError(errors.InpCode.SEMANTICS_CARD_VALUE, {attribute.name})"}\n'
156
+
o+=f'{TABS(t)}if {attribute.name} is None:\n{TABS(t+1)}raise {f"errors.InpError(errors.InpCode.SEMANTICS_OPTION, {attribute.name})"ifparent_nameelsef"errors.InpError(errors.InpCode.SEMANTICS_CARD, {attribute.name})"}\n'
0 commit comments