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