Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF-3334]Validate Toast Props #3793

Merged
merged 8 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
revert pydantic import
  • Loading branch information
ElijahAhianyo committed Aug 14, 2024
commit 66aee770c5125a51edda7001f3e1da84921a91d9
7 changes: 2 additions & 5 deletions reflex/components/sonner/toast.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from typing import Any, ClassVar, Literal, Optional, Union

from pydantic import ValidationError

from reflex.base import Base
from reflex.components.component import Component, ComponentNamespace
from reflex.components.lucide.icon import Icon
Expand All @@ -18,11 +20,6 @@
from reflex.utils.serializers import serialize, serializer
from reflex.vars import Var, VarData

try:
from pydantic.v1.error_wrappers import ValidationError
except ModuleNotFoundError:
from pydantic import ValidationError

LiteralPosition = Literal[
"top-left",
"top-center",
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/sonner/toast.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Stub file for reflex/components/sonner/toast.py"""

# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
Expand All @@ -13,10 +14,6 @@ from reflex.style import Style
from reflex.utils.serializers import serializer
from reflex.vars import BaseVar, Var

try:
from pydantic.v1.error_wrappers import ValidationError
except ModuleNotFoundError:
pass
LiteralPosition = Literal[
"top-left",
"top-center",
Expand Down
Loading