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

Don't assert PropertyKey types #457

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Don't assert PropertyKey types #457

merged 1 commit into from
Mar 20, 2025

Conversation

JordonPhillips
Copy link
Contributor

This removes runtime type assertions when inserting typed values into TypedProperties. It only would work on generic-less values, so it isn't worth the effort. Normal typing also has no runtime guarantees, so this isn't exactly a change of behavior.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This removes runtime type assertions when inserting typed values into
TypedProperties. It only would work on generic-less values, so it
isn't worth the effort. Normal typing also has no runtime guarantees,
so this isn't exactly a change of behavior.
@JordonPhillips JordonPhillips requested a review from a team as a code owner March 20, 2025 15:26
@JordonPhillips JordonPhillips merged commit 414a067 into develop Mar 20, 2025
2 checks passed
@JordonPhillips JordonPhillips deleted the narrow-pk-checks branch March 20, 2025 15:43
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