Add appropriate stacklevel arguments to ResourceWarning
Đang mở
- 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
Đánh giá
Issue này chưa được đánh giá.