graphql-python/graphene-django

Converters cannot convert datetime.timedelta to float.

オープン

#348 opened on 2017/12/18

 (9 件のコメント) (3 件のリアクション) (0 人の担当者)Python (754 件のフォーク)batch import
help wanted✨enhancement

Repository metrics

Stars
 (4,173 個のスター)
PR merge metrics
 (PR metrics pending)

説明

hello devs. During a conversation about an issue of graphql-core @jkimbo found a possible error

https://github.com/graphql-python/graphene-django/blob/5051d3bb617ce6977eebc023c958bd10de91fe91/graphene_django/converter.py#L111-L113

raising something like { "message": "float() argument must be a string or a number, not 'datetime.timedelta'" }

you can check https://github.com/graphql-python/graphql-core/issues/150 for more info.

コントリビューターガイド