aio-libs / aio-libs/aiopg

Add appropriate stacklevel arguments to ResourceWarning

Đang mở
#747 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.4k
Fork
170
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It's hard to debug the source of ResourceWarning generated in some production environments because they do not expose the callers of the aiopg APIs.
Let's add `stacklevel` arguments to `warnings.warn()` calls (including skipping intermediate wrapper functions) so that users can pinpoint the warning sources in their code bases.

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.