Repository navigation
Commit 84558d4
Declare CPython's text signature on every method that binds FuncArgs itself
main now reports a __text_signature__ for every generated method, and a
method that takes `FuncArgs` to check its own argument count has no Rust
parameter list to derive one from, so the 172 builtin methods this branch
rewrote that way advertised "(*args, **kwargs)". test_pydoc caught it on
str.lower on all three platforms:
'lower(*args, **kwargs) method of builtins.str instance'
!= 'lower() method of builtins.str instance'
Each of them now carries CPython 3.14's own __text_signature__, read from
CPython and checked back against it for all 172 (dict.update is left alone:
CPython gives it no signature). float.fromhex names its $type the way
CPython does. The two pydoc METH_O tests pass with set.add's signature in
place, so their expected-failure markers go.
Co-Authored-By: Claude Fable 5.1 <[email protected]>1 parent 955a132 commit 84558d4
16 files changed
Lines changed: 173 additions & 175 deletions
File tree
- Lib/test/test_pydoc
- crates/vm/src/builtins
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1605 | 1605 | | |
1606 | 1606 | | |
1607 | 1607 | | |
1608 | | - | |
1609 | 1608 | | |
1610 | 1609 | | |
1611 | 1610 | | |
1612 | 1611 | | |
1613 | | - | |
1614 | 1612 | | |
1615 | 1613 | | |
1616 | 1614 | | |
| |||
0 commit comments