danielgtaylor / danielgtaylor/python-betterproto
Message names with underscores and without result in two dataclasses with the same name
Offen
compiler-bug
- Vorherrschende Sprache
- Python
- Sterne
- 1.8k
- Forks
- 234
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
If you have a message called, `some_message` and `SomeMessage`, the resulting python has two dataclasses called `SomeMessage`.
Beitragsleitfaden
Rechercherichtung
Start by reproducing the issue with protobuf messages named `some_message` and `SomeMessage`, then inspect the generated Python to find where message names are converted to dataclass names. Done means the generated output no longer defines two dataclasses with the same name, with a regression test covering both message names.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- compilers
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100