Skip to content

Commit

Permalink
[readme] more example tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 12, 2023
1 parent 43bd5aa commit de9d065
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def get_session(uniqueid: int | None = None) -> Session:
Using **Late**, the declaration can be:

```python
def unique_id_generator() -> Iterator[int]:
while True:
yield make_unique_id()

def get_session(uniqueid: int = __(unique_id_generator())) -> Session:
```

Expand Down

0 comments on commit de9d065

Please sign in to comment.