Skip to content

Commit 298e019

Browse files
authored
fix typos
1 parent 1b3ba8f commit 298e019

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

reflex/components/el/elements/media.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ class Line(BaseHTML):
324324
tag = "line"
325325
# The x-axis coordinate of the line starting point.
326326
x1: Var[str | int]
327-
# The x-axis coordinate of the the line ending point.
327+
# The x-axis coordinate of the line ending point.
328328
x2: Var[str | int]
329329
# The y-axis coordinate of the line starting point.
330330
y1: Var[str | int]
331-
# The y-axis coordinate of the the line ending point.
331+
# The y-axis coordinate of the line ending point.
332332
y2: Var[str | int]
333333
# The total path length, in user units.
334334
path_length: Var[int]

reflex/components/recharts/charts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ class RadarChart(ChartBase):
297297
# The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}. Default: {"top": 0, "right": 0, "left": 0, "bottom": 0}
298298
margin: Var[dict[str, Any]]
299299

300-
# The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
300+
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
301301
cx: Var[int | str]
302302

303-
# The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
303+
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
304304
cy: Var[int | str]
305305

306306
# The angle of first radial direction line. Default: 90
@@ -352,10 +352,10 @@ class RadialBarChart(ChartBase):
352352
# The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "left": 5 "bottom": 5}
353353
margin: Var[dict[str, Any]]
354354

355-
# The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
355+
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
356356
cx: Var[int | str]
357357

358-
# The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
358+
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
359359
cy: Var[int | str]
360360

361361
# The angle of first radial direction line. Default: 0

reflex/components/recharts/polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class PolarAngleAxis(Recharts):
281281
# The customized event handler of click on the ticks of this axis.
282282
on_click: EventHandler[no_args_event_spec]
283283

284-
# The customized event handler of mousedown on the the ticks of this axis.
284+
# The customized event handler of mousedown on the ticks of this axis.
285285
on_mouse_down: EventHandler[no_args_event_spec]
286286

287287
# The customized event handler of mouseup on the ticks of this axis.

reflex/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class BaseState(EvenMoreBasicBaseState):
317317
# The event handlers.
318318
event_handlers: ClassVar[builtins.dict[str, EventHandler]] = {}
319319

320-
# A set of subclassses of this class.
320+
# A set of subclasses of this class.
321321
class_subclasses: ClassVar[set[type[BaseState]]] = set()
322322

323323
# Mapping of var name to set of (state_full_name, var_name) that depend on it.

reflex/utils/types.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def _isinstance(
699699
return treat_var_as_type and typehint_issubclass(
700700
obj._var_type,
701701
cls,
702-
treat_mutable_superclasss_as_immutable=treat_mutable_obj_as_immutable,
702+
treat_mutable_superclass_as_immutable=treat_mutable_obj_as_immutable,
703703
treat_literals_as_union_of_types=True,
704704
treat_any_as_subtype_of_everything=True,
705705
)
@@ -1018,7 +1018,7 @@ def typehint_issubclass(
10181018
possible_subclass: Any,
10191019
possible_superclass: Any,
10201020
*,
1021-
treat_mutable_superclasss_as_immutable: bool = False,
1021+
treat_mutable_superclass_as_immutable: bool = False,
10221022
treat_literals_as_union_of_types: bool = True,
10231023
treat_any_as_subtype_of_everything: bool = False,
10241024
) -> bool:
@@ -1027,7 +1027,7 @@ def typehint_issubclass(
10271027
Args:
10281028
possible_subclass: The type hint to check.
10291029
possible_superclass: The type hint to check against.
1030-
treat_mutable_superclasss_as_immutable: Whether to treat target classes as immutable.
1030+
treat_mutable_superclass_as_immutable: Whether to treat target classes as immutable.
10311031
treat_literals_as_union_of_types: Whether to treat literals as a union of their types.
10321032
treat_any_as_subtype_of_everything: Whether to treat Any as a subtype of everything. This is the default behavior in Python.
10331033
@@ -1054,7 +1054,7 @@ def typehint_issubclass(
10541054
typehint_issubclass(
10551055
possible_subclass,
10561056
type(arg),
1057-
treat_mutable_superclasss_as_immutable=treat_mutable_superclasss_as_immutable,
1057+
treat_mutable_superclass_as_immutable=treat_mutable_superclass_as_immutable,
10581058
treat_literals_as_union_of_types=treat_literals_as_union_of_types,
10591059
treat_any_as_subtype_of_everything=treat_any_as_subtype_of_everything,
10601060
)
@@ -1067,7 +1067,7 @@ def typehint_issubclass(
10671067
_isinstance(
10681068
arg,
10691069
possible_superclass,
1070-
treat_mutable_obj_as_immutable=treat_mutable_superclasss_as_immutable,
1070+
treat_mutable_obj_as_immutable=treat_mutable_superclass_as_immutable,
10711071
nested=2,
10721072
)
10731073
for arg in args
@@ -1090,7 +1090,7 @@ def typehint_issubclass(
10901090
typehint_issubclass(
10911091
possible_subclass,
10921092
accepted_arg,
1093-
treat_mutable_superclasss_as_immutable=treat_mutable_superclasss_as_immutable,
1093+
treat_mutable_superclass_as_immutable=treat_mutable_superclass_as_immutable,
10941094
treat_literals_as_union_of_types=treat_literals_as_union_of_types,
10951095
treat_any_as_subtype_of_everything=treat_any_as_subtype_of_everything,
10961096
)
@@ -1101,7 +1101,7 @@ def typehint_issubclass(
11011101
typehint_issubclass(
11021102
provided_arg,
11031103
accepted_arg,
1104-
treat_mutable_superclasss_as_immutable=treat_mutable_superclasss_as_immutable,
1104+
treat_mutable_superclass_as_immutable=treat_mutable_superclass_as_immutable,
11051105
treat_literals_as_union_of_types=treat_literals_as_union_of_types,
11061106
treat_any_as_subtype_of_everything=treat_any_as_subtype_of_everything,
11071107
)
@@ -1114,7 +1114,7 @@ def typehint_issubclass(
11141114
typehint_issubclass(
11151115
provided_arg,
11161116
possible_superclass,
1117-
treat_mutable_superclasss_as_immutable=treat_mutable_superclasss_as_immutable,
1117+
treat_mutable_superclass_as_immutable=treat_mutable_superclass_as_immutable,
11181118
treat_literals_as_union_of_types=treat_literals_as_union_of_types,
11191119
treat_any_as_subtype_of_everything=treat_any_as_subtype_of_everything,
11201120
)
@@ -1124,7 +1124,7 @@ def typehint_issubclass(
11241124
provided_type_origin = provided_type_origin or possible_subclass
11251125
accepted_type_origin = accepted_type_origin or possible_superclass
11261126

1127-
if treat_mutable_superclasss_as_immutable:
1127+
if treat_mutable_superclass_as_immutable:
11281128
if accepted_type_origin is dict:
11291129
accepted_type_origin = Mapping
11301130
elif accepted_type_origin is list or accepted_type_origin is set:
@@ -1144,7 +1144,7 @@ def typehint_issubclass(
11441144
typehint_issubclass(
11451145
provided_arg,
11461146
accepted_arg,
1147-
treat_mutable_superclasss_as_immutable=treat_mutable_superclasss_as_immutable,
1147+
treat_mutable_superclass_as_immutable=treat_mutable_superclass_as_immutable,
11481148
treat_literals_as_union_of_types=treat_literals_as_union_of_types,
11491149
treat_any_as_subtype_of_everything=treat_any_as_subtype_of_everything,
11501150
)

tests/units/utils/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def test_typehint_issubclass(subclass, superclass, expected):
163163
def test_typehint_issubclass_mutable_as_immutable(subclass, superclass, expected):
164164
assert (
165165
types.typehint_issubclass(
166-
subclass, superclass, treat_mutable_superclasss_as_immutable=True
166+
subclass, superclass, treat_mutable_superclass_as_immutable=True
167167
)
168168
== expected
169169
)

0 commit comments

Comments
 (0)