marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

#1 457 ouverte le 12 nov. 2019

Voir sur GitHub
 (12 commentaires) (0 réactions) (0 assignés)Python (640 forks)batch import
help wantedtyping

Métriques du dépôt

Stars
 (6 787 stars)
Métriques de merge PR
 (Merge moyen 4h 13m) (6 PRs mergées en 30 j)

Description

The type hinting for load's data argument is set to typing.Mapping which makes sense for the many=False case, but for many=True case the type of data is list, which isn't a Mapping type.

Guide contributeur