Skip to content

Commit

Permalink
[readme] fix omissions in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 13, 2023
1 parent c196b38 commit 3c8216d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ Using **Late**, the declaration can be:
def unique_id_generator() -> Iterator[int]:
while True:
yield make_unique_id()


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

Expand All @@ -170,6 +171,7 @@ def get_session(uniqueid: int = __(unique_id_generator())) -> Session:
a function instead of a generator:

```python
@latebinding
def get_session(uniqueid: int = __(make_unique_id)) -> Session:
```

Expand Down

0 comments on commit 3c8216d

Please sign in to comment.