Fix formatting in types.py
This commit is contained in:
parent
6b996e2843
commit
2ae11c335c
1 changed files with 3 additions and 3 deletions
|
|
@ -307,9 +307,9 @@ def get_field_properties(extra_field):
|
|||
|
||||
if not field_required:
|
||||
field_type = extract_type_from_optional(field_type)
|
||||
|
||||
with contextlib.suppress(Exception):
|
||||
field_value = ast.literal_eval(field_value)
|
||||
if field_value is not None:
|
||||
with contextlib.suppress(Exception):
|
||||
field_value = ast.literal_eval(field_value)
|
||||
return field_name, field_type, field_value, field_required
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue