Skip to content

Commit 535ab35

Browse files
committed
Merge remote-tracking branch 'origin/main' into release/reflex-0.8.3
2 parents c03c5ea + f1eaab5 commit 535ab35

28 files changed

+428
-401
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"reflex/components/radix/themes/components/scroll_area.pyi": "7cbfa553778dce45256e9530b0be883b",
8282
"reflex/components/radix/themes/components/segmented_control.pyi": "c23a595bfc16aaf4d479dfaaa92a3273",
8383
"reflex/components/radix/themes/components/select.pyi": "3703abe61e53cd619e0ea18da5003c44",
84-
"reflex/components/radix/themes/components/separator.pyi": "e93e99178867d5846932161a6e8bf760",
84+
"reflex/components/radix/themes/components/separator.pyi": "7a08430b5986fd098459a56d00a84fc8",
8585
"reflex/components/radix/themes/components/skeleton.pyi": "f3f84004eb63983947393df976428ee3",
8686
"reflex/components/radix/themes/components/slider.pyi": "e31b84a6bdd286f25a5fa8f4bde95738",
8787
"reflex/components/radix/themes/components/spinner.pyi": "da0d693bf1b4e72d027a1c871850710e",

reflex/components/radix/themes/components/separator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
from reflex.components.radix.themes.base import LiteralAccentColor, RadixThemesComponent
77
from reflex.vars.base import LiteralVar, Var
88

9-
LiteralSeperatorSize = Literal["1", "2", "3", "4"]
9+
LiteralSeparatorSize = Literal["1", "2", "3", "4"]
1010

1111

1212
class Separator(RadixThemesComponent):
1313
"""Visually or semantically separates content."""
1414

1515
tag = "Separator"
1616

17-
# The size of the select: "1" | "2" | "3" | "4"
18-
size: Var[Responsive[LiteralSeperatorSize]] = LiteralVar.create("4")
17+
# The size of the separator: "1" | "2" | "3" | "4"
18+
size: Var[Responsive[LiteralSeparatorSize]] = LiteralVar.create("4")
1919

20-
# The color of the select
20+
# The color of the separator
2121
color_scheme: Var[LiteralAccentColor]
2222

2323
# The orientation of the separator.

reflex/environment.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,6 @@ class EnvironmentVariables:
650650
# Enable full logging of debug messages to reflex user directory.
651651
REFLEX_ENABLE_FULL_LOGGING: EnvVar[bool] = env_var(False)
652652

653-
# The path to the reflex errors log file. If not set, no separate error log will be used.
654-
REFLEX_ERROR_LOG_FILE: EnvVar[Path | None] = env_var(None)
655-
656653

657654
environment = EnvironmentVariables()
658655

reflex/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ class JavascriptInputEvent:
577577
init=True,
578578
frozen=True,
579579
)
580-
class JavasciptKeyboardEvent:
580+
class JavascriptKeyboardEvent:
581581
"""Interface for a Javascript KeyboardEvent https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent."""
582582

583583
key: str = ""
@@ -645,7 +645,7 @@ class KeyInputInfo(TypedDict):
645645

646646

647647
def key_event(
648-
e: ObjectVar[JavasciptKeyboardEvent],
648+
e: ObjectVar[JavascriptKeyboardEvent],
649649
) -> tuple[Var[str], Var[KeyInputInfo]]:
650650
"""Get the key from a keyboard event.
651651

reflex/plugins/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CommonContext(TypedDict):
1717
P = ParamSpec("P")
1818

1919

20-
class AddTaskProtcol(Protocol):
20+
class AddTaskProtocol(Protocol):
2121
"""Protocol for adding a task to the pre-compile context."""
2222

2323
def __call__(
@@ -39,7 +39,7 @@ def __call__(
3939
class PreCompileContext(CommonContext):
4040
"""Context for pre-compile hooks."""
4141

42-
add_save_task: AddTaskProtcol
42+
add_save_task: AddTaskProtocol
4343
add_modify_task: Callable[[str, Callable[[str], str]], None]
4444
unevaluated_pages: Sequence["UnevaluatedPage"]
4545

reflex/route.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def replace_brackets_with_keywords(input_string: str) -> str:
131131
)
132132

133133

134-
def route_specifity(keyworded_route: str) -> tuple[int, int, int]:
134+
def route_specificity(keyworded_route: str) -> tuple[int, int, int]:
135135
"""Get the specificity of a route with keywords.
136136
137137
The smaller the number, the more specific the route is.
@@ -193,13 +193,13 @@ def get_router(routes: list[str]) -> Callable[[str], str | None]:
193193
keyworded_routes = {
194194
replace_brackets_with_keywords(route): route for route in routes
195195
}
196-
sorted_routes_by_specifity = sorted(
196+
sorted_routes_by_specificity = sorted(
197197
keyworded_routes.items(),
198-
key=lambda item: route_specifity(item[0]),
198+
key=lambda item: route_specificity(item[0]),
199199
)
200200
regexed_routes = [
201201
(get_route_regex(keyworded_route), original_route)
202-
for keyworded_route, original_route in sorted_routes_by_specifity
202+
for keyworded_route, original_route in sorted_routes_by_specificity
203203
]
204204

205205
def get_route(path: str) -> str | None:

0 commit comments

Comments
 (0)