graphql-python / graphql-python/graphene
Numpy NaN handling
- Langage dominant
- Python
- Étoiles
- 8.2k
- Forks
- 818
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by tracing how Graphene's Float scalar or generated payload serializes NumPy arrays containing NaN. Reproduce the reported [1, NaN] output and add coverage showing that NaN is emitted as JSON null without breaking normal float handling.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- numpy, python
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100