Repository navigation
fix isinplace inference and add inference tests - #1019
oscardssmith wants to merge 4 commits into
Conversation
| hasmethod(f, ntuple(_->Any, outofplace_param_number)) && return false | ||
| hasmethod(f, ntuple(_->Any, inplace_param_number)) && return true | ||
| end | ||
| throw(FunctionArgumentsError(fname, f)) |
There was a problem hiding this comment.
This error message loses a lot of information. Can we in the error path do a method check and throw the more informative error message?
There was a problem hiding this comment.
IMO the better method is to just put the expected nargs in the exception and then we can make the exception printing in charge of that logic. That way none of the complicated bits are in the main function.
|
I just remembered the tricky part here. This query isn't quite right (see JuliaLang/julia#56279 for details): |
PR: #1019 Reviewed head: 6f7e8c6 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H1: the exported This affects users constructing ODEs, other SciML problems, and optimization objectives from typed, generated, composed, partial, or foreign-language callbacks. The classification feeds common Blocking findings
Nonblocking findings
What I ran
What I did not verify
Head link: 6f7e8c6 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
fixes #1017
This also removes
NoMethodsError,TooManyArgumentsError, andTooFewArgumentsErrorand fixes inference for some*Functionconstructors`