File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
+ "type" : " module" ,
2
3
"scripts" : {
3
4
"format" : " prettier --write . && eslint --fix" ,
4
5
"check" : " prettier --check . && eslint"
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ async def execute_query() -> None:
150
150
try :
151
151
# Run the query
152
152
if asyncio .iscoroutinefunction (query ):
153
- new_data = await query (** kwargs )
153
+ new_data = await query (** kwargs ) # type: ignore[call-arg]
154
154
else :
155
155
new_data = await database_sync_to_async (
156
156
query , thread_sensitive = thread_sensitive
@@ -219,7 +219,7 @@ def use_mutation(
219
219
) -> Mutation [FuncParams ]:
220
220
"""This hook is used to modify data in the background, typically to create/update/delete \
221
221
data from the Django ORM.
222
-
222
+
223
223
Mutation functions can `return False` to prevent executing your `refetch` function. All \
224
224
other returns are ignored. Mutation functions can be sync or async.
225
225
@@ -318,7 +318,7 @@ def use_user_data(
318
318
save_default_data : bool = False ,
319
319
) -> UserData :
320
320
"""Get or set user data stored within the REACTPY_DATABASE.
321
-
321
+
322
322
Kwargs:
323
323
default_data: A dictionary containing `{key: default_value}` pairs. \
324
324
For computationally intensive defaults, your `default_value` \
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def delete_old_workspaces():
107
107
if value .startswith ("user_workspace_" )
108
108
}
109
109
110
- # Delete the workspace if it doesn't exist at this moment
110
+ # Delete any workspaces that are not being used
111
111
for uuid in python_uuids - dom_uuids :
112
112
task_name = f"task_{ uuid } "
113
113
if task_name in globals ():
You can’t perform that action at this time.
0 commit comments