getsentry / getsentry/sentry-python

Remove (or at least mitigate) shadowing of `input` within the OpenAI integration

Đang mở
#5,929 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Python Refactoring Task
Ngôn ngữ chính
Python
Star
2.2k
Fork
669
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
213

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.