-
-
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
Internal error when interpolating function calls w/ type inference in debug strings #47435
Comments
The important thing is that this method needs to be defined
without that, no error. |
still fails on master (b9da8a9):
|
Some further notes from playing around with this briefly in case it's helpful to anyone:
|
It appears to be a misordering of the handling of converting trailing arguments into a single Vararg and the discarding of unusable Conditional information on some of those arguments. @aviatesk might be familiar with that code already to provide a fix? |
If `Conditional` is imposed on argument that is squashed to vararg-tuple then we don't need to `widenconditional` on `isva_given_argtypes` (because `Conditional`-information is already widened during the conversion to that vararg-tuple type -- since `PartialStruct` now never wraps slot wrappers with the explicit check within its constructor). Fixes #47435.
I came across this on 1.8.2, demonstrated by the following MWE:
apologies if this has been reported elsewhere but my issue search fu failed to turn up anything that seemed related!
The text was updated successfully, but these errors were encountered: