marshmallow-code/marshmallow

Type hinting for `load` is too strict

开放

#1,457 创建于 2019年11月12日

 (12 条评论) (0 个反应) (0 位负责人)Python (640 个派生)batch import
help wantedtyping

仓库指标

星标
 (6,787 个星标)
PR 合并指标
 (平均合并 10小时 55分钟) (30 天内合并 7 个 PR)

描述

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.

贡献者指南