Skip to content

Commit b58ce10

Browse files
fix appharness app_source typing (#3777)
1 parent 911c2af commit b58ce10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reflex/testing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class AppHarness:
115115

116116
app_name: str
117117
app_source: Optional[
118-
types.FunctionType | types.ModuleType | str | functools.partial
118+
types.FunctionType | types.ModuleType | str | functools.partial[Any]
119119
]
120120
app_path: pathlib.Path
121121
app_module_path: pathlib.Path
@@ -134,7 +134,9 @@ class AppHarness:
134134
def create(
135135
cls,
136136
root: pathlib.Path,
137-
app_source: Optional[types.FunctionType | types.ModuleType | str] = None,
137+
app_source: Optional[
138+
types.FunctionType | types.ModuleType | str | functools.partial[Any]
139+
] = None,
138140
app_name: Optional[str] = None,
139141
) -> "AppHarness":
140142
"""Create an AppHarness instance at root.

0 commit comments

Comments
 (0)