Commit a2be746
fix: suppress deprecation warnings during attribute probing in dumper
safe_getattr() iterates all attributes of instrumented objects; some
(e.g. torchvision dataset's .test_data) fire warnings.warn() on
access. Wrap getattr in warnings.catch_warnings(simplefilter=ignore)
so third-party deprecation warnings don't leak to the user's stderr.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e8ec62e commit a2be746
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
319 | 321 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
324 | 328 | | |
325 | 329 | | |
326 | 330 | | |
| |||
0 commit comments