madpah/serializable

style: get rid of unnecessary type conversions

开放

#23 创建于 2023年9月28日

 (0 条评论) (0 个反应) (0 位负责人)Python (5 个派生)auto 404
help wanted

仓库指标

星标
 (7 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

examples:

# is string already!  why the cast? 
            if type(type_) == str:
                type_to_parse = str(type_)
# is in list already! why the cast? 
                    if results.get('array_type', None) in self._SORTED_CONTAINERS_TYPES:
                        mapped_array_type = self._SORTED_CONTAINERS_TYPES.get(str(results.get("array_type")))

贡献者指南