marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

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

在 GitHub 查看
 (12 评论) (0 反应) (0 负责人)Python (6,787 star) (640 fork)batch import
help wantedtyping

描述

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.

贡献者指南