marshmallow-code/marshmallow

Type hinting for `load` is too strict

Aperta

#1457 aperta il 12 nov 2019

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

Metriche repository

Star
 (6787 stelle)
Metriche merge PR
 (Merge medio 10h 55m) (7 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