Commit 2be8358
Fix test_identical_args to ignore type annotations in signature comparison (#1421)
requests 2.33.0 added type annotations to its public functions, causing
inspect.signature() comparisons to fail since nailgun's wrappers don't
replicate those annotations. Strip annotations from both sides before
comparing so the test validates parameter names/kinds/defaults only.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit cbfb67f)1 parent 759d59e commit 2be8358
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
133 | 140 | | |
134 | 141 | | |
135 | | - | |
136 | | - | |
| 142 | + | |
| 143 | + | |
137 | 144 | | |
0 commit comments