Closed prjemian closed 5 days ago
Build the conda test environment:
conda create -y -n test python=3.11
conda activate test
pip install https://github.com/spc-group/guarneri/archive/sansio.zip apstools
Thanks @prjemian. It should just skip validation for *args
, so the fact that you're getting that error is a bug. But beyond that, I should actually validate *args
and *kwargs
together, since a required argument might be in *args
instead of **kwargs
in which case validation of *kwargs
alone would fail.
I'll work on this.
Is it as simple as adding an exclusion check for sig_param.VAR_POSITIONAL
at the start of this loop? https://github.com/spc-group/guarneri/blob/68c797375708b1e30ac410cfc019febc7b74d2bf/src/guarneri/instrument.py#L182-L184
Should be fixed now that #5 is merged. *args
is now properly recognized as being optional.
Let me know if there are still any issues.
Error is reproducible in TOML when using the
sansio
branch. Config file content:Code that reproduces the exception trace:
The exception trace:
Originally posted by @prjemian in https://github.com/spc-group/guarneri/issues/5#issuecomment-2484797325