Skip to content

Commit 6904d02

Browse files
vdusekclaude
andcommitted
docs: fix type errors in code examples
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e8be28e commit 6904d02

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/02_concepts/code/02_request_list.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ async def main() -> None:
1717
request_list_sources_input=request_list_sources,
1818
)
1919

20-
Actor.log.info(f'Loaded {len(request_list.requests)} requests from input')
20+
total = await request_list.get_total_count()
21+
Actor.log.info(f'Loaded {total} requests from input')
2122

2223
# Process requests from the list
2324
while request := await request_list.fetch_next_request():

docs/02_concepts/code/04_use_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def main() -> None:
1414
Actor.log.info(f'Resuming from item {start_index}')
1515

1616
# Do some work and update the state — it is persisted automatically
17-
for i in range(start_index, 100):
17+
for i in range(start_index, 100): # type: ignore[arg-type]
1818
Actor.log.info(f'Processing item {i}...')
1919
state['processed_items'] = i + 1
2020
await asyncio.sleep(0.1)

0 commit comments

Comments
 (0)