From 6d3809efcbf5ba7935ab43c1f85f1ca277a5f384 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Thu, 29 Feb 2024 01:57:08 +0100 Subject: [PATCH] ModelField doesn't exist in pydantic v2 --- reflex/compiler/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reflex/compiler/utils.py b/reflex/compiler/utils.py index f13e648ea..701b50f84 100644 --- a/reflex/compiler/utils.py +++ b/reflex/compiler/utils.py @@ -5,8 +5,6 @@ import os from typing import Any, Callable, Dict, Optional, Type, Union from urllib.parse import urlparse -from pydantic.fields import ModelField - from reflex import constants from reflex.components.base import ( Body, @@ -149,7 +147,7 @@ def compile_state(state: Type[BaseState]) -> dict: def _compile_client_storage_field( - field: ModelField, + field, ) -> tuple[Type[Cookie] | Type[LocalStorage] | None, dict[str, Any] | None]: """Compile the given cookie or local_storage field.