Skip to content

Commit

Permalink
bug fix: use pydantic v2 model.model_rebuild not rebuild_model
Browse files Browse the repository at this point in the history
  • Loading branch information
AJamesPhillips committed Nov 27, 2023
1 parent abe3e2a commit 9d723df
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 9d723df

Please sign in to comment.