Skip to content

Commit

Permalink
fix pyi files
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Nov 6, 2024
1 parent 733af23 commit f93ef4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reflex/components/markdown/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_base_component_map() -> dict[str, Callable]:
}


@dataclasses.dataclass(frozen=True)
@dataclasses.dataclass()
class MarkdownComponentMap:
"""Mixin class for handling custom component maps in Markdown components."""

Expand Down
8 changes: 4 additions & 4 deletions reflex/components/markdown/markdown.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# ------------------------------------------------------
import dataclasses
from functools import lru_cache
from typing import Any, Callable, Dict, Optional, Union, overload
from typing import Any, Callable, Dict, Optional, Sequence, Union, overload

from reflex.components.component import Component
from reflex.event import EventType
Expand All @@ -29,19 +29,19 @@ NO_PROPS_TAGS = ("ul", "ol", "li")

@lru_cache
def get_base_component_map() -> dict[str, Callable]: ...
@dataclasses.dataclass(frozen=True)
@dataclasses.dataclass()
class MarkdownComponentMap:
@classmethod
def get_component_map_custom_code(cls) -> str: ...
@classmethod
def create_map_fn_var(
cls,
fn_body: Var | None = None,
fn_args: tuple[str, ...] | None = None,
fn_args: Sequence[str] | None = None,
explicit_return: bool | None = None,
) -> Var: ...
@classmethod
def get_fn_args(cls) -> list[str]: ...
def get_fn_args(cls) -> Sequence[str]: ...
@classmethod
def get_fn_body(cls) -> Var: ...

Expand Down

0 comments on commit f93ef4f

Please sign in to comment.