memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.
https://pypi.org/project/gqlalchemy/
Apache License 2.0
226 stars 32 forks source link

[master < T] Pydantic v2 #278

Closed as51340 closed 1 year ago

as51340 commented 1 year ago

Description

Bumped pydantic to v2.3.0

Pull request type

Please delete options that are not relevant.

Related issues

Delete section if this PR doesn't resolve any issues.

Closes (link to issue)

Checklist:

######################################

Reviewer checklist (the reviewer checks this part)

######################################

as51340 commented 1 year ago

@antepusic it is still not working, problems with some type

katarinasupe commented 1 year ago

@as51340 we should be careful with migration to Pydantic v2 and how that affects our users and us. This guide might help: https://docs.pydantic.dev/latest/migration/#migration-guide. The conclusion of this PR might also be us not moving to Pydantic v2 for now (if you conclude it's too much work for now). But, notice also what users suggested in the linked issue: https://github.com/memgraph/gqlalchemy/issues/257#issuecomment-1685718099 . I also found this in their migration guide that might help: https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features

katarinasupe commented 1 year ago

There is also a tool that might help if we migrate: https://docs.pydantic.dev/latest/migration/#code-transformation-tool