graphql-python / graphql-python/graphene
Numpy NaN handling
Offen
✨ enhancement
🙋 help wanted
- Vorherrschende Sprache
- Python
- Sterne
- 8.2k
- Forks
- 818
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.