marshmallow-code/marshmallow

Type hinting for `load` is too strict

Aberta

#1.457 aberto em 12 de nov. de 2019

 (12 comentários) (0 reação) (0 responsável)Python (640 forks)batch import
help wantedtyping

Métricas do repositório

Stars
 (6.787 estrelas)
Métricas de merge de PR
 (Mesclagem média 10h 55m) (7 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