danielgtaylor / danielgtaylor/python-betterproto

Add casing to from_dict method

Aperta
#660 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
1.8k
Fork
234
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Summary

from_dict method did not support casing

### What is the feature request for?

The core library

### The Problem

When using `to_dict` method I can pass case, but for `from_dict` method only safe_snake_case is available, It looks like some inconsistent behavior

### The Ideal Solution

As i understand `safe snake case` is not necessarily needs to be safe, so replacing it with any casting method would be safe

### The Current Solution

Just use snakecase in dict

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.