Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmund Hood Highcock committed Feb 19, 2024
1 parent 0dd2642 commit 1b7a8fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion graphene_pydantic/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,13 @@ def find_graphene_type(
return UUID
elif type_ in (str, bytes):
return String
elif type_ in [datetime.datetime, PastDatetime, FutureDatetime, AwareDatetime, NaiveDatetime]:
elif type_ in [
datetime.datetime,
PastDatetime,
FutureDatetime,
AwareDatetime,
NaiveDatetime
]:
return DateTime
elif type_ in [datetime.date, PastDate, FutureDate]:
return Date
Expand Down

0 comments on commit 1b7a8fe

Please sign in to comment.