danielgtaylor / danielgtaylor/python-betterproto

Naming collision with nested enums

Abierto
#212 9 comentarios 0 reacciones 1 asignado Reclamado por @cetanu Ver en GitHub
enhancement help wanted high priority
Lenguaje dominante
Python
Estrellas
1.8k
Forks
234
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

# Problem

Currently these two enums in the same file will be both compiled into the same name of `ContentStatus`

```
message Content {enum Status{ ... }}
enum ContentStatus{ ... }
```

Currently the behaviour is to silently overwrite one of the enums, therefore making all subsequent call of the enum possibly wrong.

# Workaround

I have consulted @nat-n and they say they don't see a way to work around the issue currently, except to directly modify the generated code.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.