Skip to content

Fix return type annotation and explain generator usage in active_clients example - #34

Closed
Sangeeth62880 wants to merge 1 commit into
zedr:masterfrom
Sangeeth62880:fix-mutable-default-argument-example
Closed

Sangeeth62880 wants to merge 1 commit into
zedr:masterfrom
Sangeeth62880:fix-mutable-default-argument-example

Conversation

@Sangeeth62880

Copy link
Copy Markdown

This PR fixes a misleading return type annotation in the
active_clients generator example and adds a brief explanation
highlighting the memory and performance benefits of generators.

@zedr

zedr commented Jan 10, 2026

Copy link
Copy Markdown
Owner

Hi. Thanks. I used a list comprehension intentionally. I wanted to create an opportunity for using generators immediately after. I did it to explain the difference to the reader.

@zedr zedr closed this Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants