madpah/serializable

style: get rid of unnecessary type conversions

Aberta

#23 aberto em 28 de set. de 2023

 (0 comentário) (0 reação) (0 responsável)Python (5 forks)auto 404
help wanted

Métricas do repositório

Stars
 (7 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador