__init__.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:cattrs 作者: Tinche 项目源码 文件源码
def create_generic_dict_type(type1, type2):
    """Create a strategy for generating parameterized dict types."""
    return st.one_of(dict_types,
                     dict_types.map(lambda t: t[type1, type2]),
                     dict_types.map(lambda t: t[Any, type2]),
                     dict_types.map(lambda t: t[type1, Any]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号