Skip to content
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

Correct adjustment of annotations on OutputBasket type. Fixes #483. #484

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

ptomecek
Copy link
Collaborator

@ptomecek ptomecek commented Mar 8, 2025

Fixes #483. Required for revalidation of output basket types when an int type is present.

The original adjustment of annotations converts OutputBasketContainer to OutputBasket. So when re-validating the int-based outputs after type var resolution, it needs to be able to handle the OutputBasket type, which it wasn't doing before. This PR fixes that issue, and also adds an explicit test for csp.basketlib.sync for a dict basket with int types, in addition to unit tests on the annotation adjustment.

…revalidation of output basket types when an int type is present

Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
@ptomecek
Copy link
Collaborator Author

ptomecek commented Mar 9, 2025

@AdamGlustein Are you good with the latest changes?

@ptomecek ptomecek merged commit d22bd7d into main Mar 9, 2025
27 checks passed
@ptomecek ptomecek deleted the pit/issue_483 branch March 9, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

csp.basketlib.sync doesn't work with integer keys under pydantic type checking
3 participants