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

Tighten the type discriminators. #948

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Tighten the type discriminators. #948

merged 1 commit into from
Jun 24, 2024

Conversation

anoto-moniz
Copy link
Collaborator

Some of them are looser than necessary. This won't constitute a breaking change, as the resulting field type will be the same, just without using the polymorphic decoding.

The idea is to increase precision, as well as allow us to drop unnecessary type discriminators from the payload in the future.

PR Type:

  • Breaking change (fix or feature that would cause existing functionality to change)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Maintenance (non-breaking change to assist developers)

Adherence to team decisions

  • I have added tests for 100% coverage
  • I have written Numpy-style docstrings for every method and class.
  • I have communicated the downstream consequences of the PR to others.
  • I have bumped the version in __version__.py

Some of them are looser than necessary. This won't constitute a breaking
change, as the resulting field type will be the same, just without using
the polymorphic decoding.

The idea is to increase precision, as well as allow us to drop
unnecessary type discriminators from the payload in the future.
@anoto-moniz anoto-moniz marked this pull request as ready for review June 21, 2024 13:39
Copy link
Contributor

@StevenKauwe StevenKauwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@anoto-moniz anoto-moniz merged commit 104bc0c into main Jun 24, 2024
16 checks passed
@anoto-moniz anoto-moniz deleted the feature/tighten-types branch June 24, 2024 20:34
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.

2 participants