marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

#1,457 opened on Nov 12, 2019

View on GitHub
 (12 comments) (0 reactions) (0 assignees)Python (6,787 stars) (640 forks)batch import
help wantedtyping

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.

Contributor guide