graphql-python / graphql-python/graphene
Numpy NaN handling
Abierto
✨ enhancement
🙋 help wanted
- Lenguaje dominante
- Python
- Estrellas
- 8.2k
- Forks
- 818
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Currently when a `[Float]` type resolves to `np.array([1, np.nan])` the generated payload is `[1, NaN]` which is not json-compilant (rather than `null`) without any warning. A custom scalar can do the job however as numpy is so widely used, maybe this should be supported out of the box?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.