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.

貢獻者指南

Type hinting for `load` is too strict · marshmallow-code/marshmallow#1457 | Good First Issue