Skip to content

Commit

Permalink
fix: we want DF.Literal[None], not DF.LiteralNone (#25394)
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit 1896117)
  • Loading branch information
mergify[bot] committed Mar 13, 2024
1 parent 9c6fb8a commit f008eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/types/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _generic_parameters(self, field) -> str | None:
elif field.fieldtype == "Select":
if not field.options:
# Could be dynamic
return "None"
return "[None]"
options = [o.strip() for o in field.options.split("\n")]
return json.dumps(options)

Expand Down

0 comments on commit f008eeb

Please sign in to comment.