Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shkangomelet authored Jul 15, 2024
1 parent 9bc0c1f commit c1f54a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drf_pydantic/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def _convert_field(field: pydantic.fields.FieldInfo) -> serializers.Field:

# Adding label as title
if (
field.title is not pydantic_core.PydanticUndefined
and field.title is not None
field.title is not pydantic_core.PydanticUndefined
and field.title is not None
):
drf_field_kwargs["label"] = field.title

Check warning on line 150 in src/drf_pydantic/parse.py

View check run for this annotation

Codecov / codecov/patch

src/drf_pydantic/parse.py#L150

Added line #L150 was not covered by tests

Expand Down

0 comments on commit c1f54a9

Please sign in to comment.