madpah/serializable

style: get rid of unnecessary type conversions

オープン

#23 opened on 2023/09/28

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (5 件のフォーク)auto 404
help wanted

Repository metrics

Stars
 (7 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド