◐ Shell
clean mode source ↗

Refactor warn.rs and _warnings module by youknowone · Pull Request #7023 · RustPython/RustPython

@youknowone

coderabbitai[bot]

@youknowone youknowone changed the title impl more warnings Refactor warn.rs and _warnings module

Feb 6, 2026
- Add already_warned() with filter version tracking
- Add type validation for _defaultaction and _onceregistry
- Use direct function names for _warnings pyattr/pyfunction
- Route stdlib::warnings::warn through warn::warn
- Remove spurious EncodingWarning from TextIOWrapper
- Clean up comments and simplify check_matched error handling
- Remove expectedFailure from 3 passing test_warnings tests

coderabbitai[bot]

Comment on lines +288 to +292