-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sparam inlining: Handle undefined sparams #46703
Conversation
`_compute_sparams` is not required to be able to resolve an sparam, it can leave it as a `TypeVar`, in which case accessing it should throw an UndefVarError. This needs to be appropriately handled in inlining. We have a test case like this in the test suite, but it was being papered over by an incorrect check in can_inline_typevar. Remove that check and implement proper undef checking in inlining.
89cd963
to
e730590
Compare
This is subtle enough that we should run a PkgEval over it. Unfortunately, PkgEval is currently broken. |
Thanks, I knew that |
@nanosoldier |
Your package evaluation job has completed - possible issues were detected. A full report can be found here. |
I'm looking into the PkgEval issues and will re-trigger when fixed. |
Turns out the @nanosoldier |
Your package evaluation job has completed - possible new issues were detected. A full report can be found here. |
@nanosoldier |
Your package evaluation job has completed - possible new issues were detected. A full report can be found here. |
PkgEval seems clean |
_compute_sparams
is not required to be able to resolve an sparam, it can leave it as aTypeVar
, in which case accessing it should throw an UndefVarError. This needs to be appropriately handled in inlining. We have a test case like this in the test suite, but it was being papered over by an incorrect check in can_inline_typevar. Remove that check and implement proper undef checking in inlining.