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")))

貢獻者指南