semconv: Usage of Final
annotation for Enum
attributes is an error
#4083
Labels
bug
Something isn't working
Final
annotation for Enum
attributes is an error
#4083
Describe your environment
opentelemetry-semantic-conventions==0.47b0
What happened?
#3966 added many
Final
annotations to semantic convention literals.However, usage of any annotation for
Enum
member attributes is considered invalid, and a bareFinal
not being flagged appear to be an edge case that was overlooked in at leastpyright
: microsoft/pyright#8543 (comment)This leads to misleading type checker errors.
Steps to Reproduce
Consider:
Expected Result
No type violations in
get_ok()
.Actual Result
Additional context
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: