getsentry / getsentry/sentry-python
Remove (or at least mitigate) shadowing of `input` within the OpenAI integration
Open
Python
Refactoring
Task
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 669
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 213
Description
There's a number of places where we name variables `input` (such as in \``_calculate_responses_token_usage`\`) that reflect the OpenAI variable names, but that cause shadowing of the `input` Python function.
We should look to rename these variables to avoid this.
Contributor guide
Assessment
This issue has not been assessed yet.