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]))
评论列表
文章目录