marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

#1457 aperta il 12 nov 2019

Vedi su GitHub
 (12 commenti) (0 reazioni) (0 assegnatari)Python (640 fork)batch import
help wantedtyping

Metriche repository

Star
 (6787 star)
Metriche merge PR
 (Merge medio 4h 13m) (6 PR mergiate in 30 g)

Descrizione

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.

Guida contributor