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

Fix bug when handling Literal types containing a literal None #400

Merged
merged 2 commits into from
May 3, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented May 3, 2023

Previously these worked, but the caching behavior was broken in a way where if a Literal type containing None was used without an object-like type wrapping it then the None element would be dropped.

This also refactors some of the internals to reuse error handling code across the various cached parsed types.

jcrist added 2 commits May 2, 2023 22:30
Previously a `Literal` containing `None` may be handled incorrectly if
not enclosed within a top-level structured type (Struct, dataclass,
etc...).
@jcrist jcrist merged commit ad022dc into main May 3, 2023
@jcrist jcrist deleted the refactor-info-cache branch May 3, 2023 04:05
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.

1 participant