Skip to content

Conversation

@marcellofuschi
Copy link
Contributor

@marcellofuschi marcellofuschi commented Aug 13, 2025

Needed for tools like Dialyzer

@ericgross
Copy link

Thank you!

@ankane
Copy link
Member

ankane commented Oct 16, 2025

Hi @marcellofuschi, thanks for the PR. Can you share more about the issue you're seeing and how to reproduce it? Also, if it makes sense to add this for Vector, it probably makes sense to add for the other types.

@marcellofuschi
Copy link
Contributor Author

I'm in a Phoenix project with Dialyzer. I have a typed_schema that has a Pgvector.Ecto.Vector field.
If I run Dialyzer in this setting, I get the following error:
Unknown type: Pgvector.Ecto.Vector.t/0.

The error disappears if I apply the change included in this PR.

@ankane ankane merged commit 950eaee into pgvector:master Oct 21, 2025
ankane added a commit that referenced this pull request Oct 21, 2025
@ankane
Copy link
Member

ankane commented Oct 21, 2025

Thanks @marcellofuschi. Added more typespecs in the commit above.

Also, for future reference, typed_ecto_schema is needed for typed_schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants