madpah/serializable

style: get rid of unnecessary type conversions

Offen

#23 geöffnet am 28.09.2023

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (5 Forks)auto 404
help wanted

Repository-Metriken

Stars
 (7 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide