Skip to content

Commit 87df7b3

Browse files
committed
comment cleanup
1 parent b1e1d27 commit 87df7b3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/django_idom/hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def use_query(
132132
# The main "running" function for `use_query`
133133
async def execute_query() -> None:
134134
try:
135-
# Run the initial query
135+
# Run the query
136136
if asyncio.iscoroutinefunction(query):
137137
new_data = await query(*args, **kwargs)
138138
else:
@@ -256,8 +256,8 @@ def use_mutation(*args: Any, **kwargs: Any) -> Mutation[_Params]:
256256

257257
# The main "running" function for `use_mutation`
258258
async def execute_mutation(exec_args, exec_kwargs) -> None:
259+
# Run the mutation
259260
try:
260-
# Run the mutation
261261
if asyncio.iscoroutinefunction(mutation):
262262
should_refetch = await mutation(*exec_args, **exec_kwargs)
263263
else:

src/django_idom/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class ComponentSession(models.Model):
5-
"""A model for storing component sesssions.
5+
"""A model for storing component sessions.
66
All queries must be routed through `django_idom.config.IDOM_DATABASE`.
77
"""
88

tests/test_app/components.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ async def async_get_or_create_relational_parent():
265265

266266
async def async_get_relational_parent_query():
267267
# Sleep to avoid race conditions in the test
268+
# Also serves as a good way of testing whether things are truly async
268269
await asyncio.sleep(1)
269270
return await async_get_or_create_relational_parent()
270271

0 commit comments

Comments
 (0)