Skip to content

Commit

Permalink
bug fix: use pydantic v2 model.model_rebuild (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Smith authored Nov 30, 2023
2 parents 08bada3 + 9d723df commit fd94314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gotrue/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ class DecodedJWTDict(TypedDict):
]:
try:
# pydantic > 2
model.rebuild_model()
model.model_rebuild()
except AttributeError:
# pydantic < 2
model.update_forward_refs()

0 comments on commit fd94314

Please sign in to comment.