danielgtaylor / danielgtaylor/python-betterproto
warnings package not imported for deprecated warning.
Offen
compiler-bug
good first issue
- Vorherrschende Sprache
- Python
- Sterne
- 1.8k
- Forks
- 234
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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!
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.