ModelField doesn't exist in pydantic v2
This commit is contained in:
parent
8c7dd39f02
commit
6d3809efcb
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user