danielgtaylor / danielgtaylor/python-betterproto

warnings package not imported for deprecated warning.

Aperta
#239 1 commento 1 reazione 0 assegnatari Vedi su GitHub
compiler-bug good first issue
Lingua principale
Python
Stelle
1.8k
Fork
234
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi there, thanks for the great project!

My environment:
betterproto: v2.0.0b3
python: v3.8.5
OS: Ubuntu 20.04

I use `deprecated` option in a message definition. betterproto generates a `warnings.warn` properly, but the `warnings` package is not imported, so it throws `NameError: name 'warnings' is not defined`. I manually add the line for now, but it'd be great if it can be fixed in the package.

Thanks!

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.