Skip to content

Commit

Permalink
add str cast
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Nov 23, 2024
1 parent 83f6eab commit ef90617
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def serialize_field(member: definition.Member) -> SerializeFieldDict:
if member.has_annotation('default'):
annotation_value = member.get_annotation_value('default')
if isinstance(annotation_value, dict):
default_value = annotation_value['value']
default_value = str(annotation_value['value'])

return {
'name': member.name,
Expand Down

0 comments on commit ef90617

Please sign in to comment.