You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7aa7e93
Browse filesBrowse the repository at this point in the historyBrowse files
Bind every argument list the Argument Clinic way; parse legacy callers with ArgSpec
Remove FromArgs::CONVERTS_BEFORE_MISSING and #[pyarg(convert_before_missing)].
The missing-argument check in FuncArgs::bind_for is now FromArgs::missing_from.
A binding with no PARAMS and arity 1..=1 counts as one required positional-only
parameter, and tuple bindings walk their components, so math.comb(x) and
list.insert(x) report "expected 2 arguments, got 1" before converting x. A
method's instance argument is skipped without advancing the position.
A required keyword-only parameter missing from the keywords is reported before
any conversion. FromArgs::HAS_REQUIRED_KEYWORD_ONLY is computed from PARAMS at
compile time, so a call that gives every required positional argument walks
nothing unless the type has such a parameter.
Make ArgSpec public and parse with it, converting each argument in kwlist
order, the callables that 3.15.2 parses with PyArg_ParseTupleAndKeywords or
_PyArg_ParseStackAndKeywords and whose earlier required arguments can fail to
convert: mmap.mmap, _functools._lru_cache_wrapper, _json.make_encoder,
_posixshmem.shm_open, and _winapi CreateEventW, CreateMutexW, OpenEventW,
OpenMutexW, LCMapStringEx, ReadFile, WriteFile, CopyFile2. The pyfunctions take
FuncArgs and carry their text signature in the Rust docstring.
has_signature returns false for a bare FuncArgs argument, and a non-empty Rust
docstring of such a function is used as written.
Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Grok CLI:grok-4.7
0 commit comments