From 9d723df7637fb501f83aad3562a49e2ed24bb9a2 Mon Sep 17 00:00:00 2001 From: Alexander James Phillips Date: Mon, 27 Nov 2023 23:28:42 +0000 Subject: [PATCH] bug fix: use pydantic v2 model.model_rebuild not rebuild_model --- gotrue/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotrue/types.py b/gotrue/types.py index 1b407c2b..1f09a3f1 100644 --- a/gotrue/types.py +++ b/gotrue/types.py @@ -673,7 +673,7 @@ class DecodedJWTDict(TypedDict): ]: try: # pydantic > 2 - model.rebuild_model() + model.model_rebuild() except AttributeError: # pydantic < 2 model.update_forward_refs()