chore: export black-compatible types
This commit is contained in:
parent
9073874b50
commit
b6b7fafe72
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ Design goal:
|
|||
|
||||
import ast
|
||||
import inspect
|
||||
import json
|
||||
import re
|
||||
import textwrap
|
||||
import tokenize
|
||||
|
|
@ -179,7 +180,7 @@ class TypeExporter:
|
|||
# Could be dynamic
|
||||
return
|
||||
options = [o.strip() for o in field.options.split("\n")]
|
||||
return repr(options)
|
||||
return json.dumps(options)
|
||||
|
||||
@staticmethod
|
||||
def _validate_code(code) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue