Commit dcb7a4f
fix: use stacklevel=2 in AssignRequest deprecation warning
stacklevel=3 pointed at the wrong caller frame when encode_body()
was called directly (e.g. not via Message.encode()). stacklevel=2
is the conventional Python default and correctly points at the
immediate caller of encode_body() in all call paths.
Closes #153.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e8bd03c commit dcb7a4f
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
368 | 380 | | |
369 | 381 | | |
370 | 382 | | |
| |||
0 commit comments