marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

#1.457 aberto em 12 de nov. de 2019

Ver no GitHub
 (12 comments) (0 reactions) (0 assignees)Python (640 forks)batch import
help wantedtyping

Métricas do repositório

Stars
 (6.787 stars)
Métricas de merge de PR
 (Mesclagem média 4h 13m) (6 fundiu PRs em 30d)

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.

Guia do colaborador