Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Mar 16, 2022
1 parent c60a4ad commit 751794c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _gen_from_last_field(
last_field_schema = self._fields_stack[-1]
# Generate the custom-description for the field.
description = last_field_schema.doc if last_field_schema.doc else None
if last_field_schema.has_default is not None:
if last_field_schema.has_default and last_field_schema.default is not None:
description = (
f"{description}\nField default value: {last_field_schema.default}"
)
Expand Down

0 comments on commit 751794c

Please sign in to comment.