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

Update Ecto.Changeset.get_assoc/3 typespecs for belongs_to associations #4495

Merged

Conversation

cserino
Copy link
Contributor

@cserino cserino commented Aug 16, 2024

For belongs_to associations, it returns nil or a changeset/struct which the previous typespec did not cover.

- For belongs_to associations, it returns nil or a changeset/struct
- Add test cases for empty/nil/belongs_to
@greg-rychlewski greg-rychlewski merged commit cba4947 into elixir-ecto:master Aug 17, 2024
6 checks passed
@greg-rychlewski
Copy link
Member

thanks very much

@warmwaffles
Copy link
Member

This just came up with dialyzer complaining that only [t()] was possible. Is there a timeline on when this gets sweeped up into a patch?

@josevalim
Copy link
Member

There are some prefix related fixes on the pipeline, so as soon as that is addressed, we can ship a new one.

@warmwaffles
Copy link
Member

Awesome

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.

4 participants