Skip to content

Commit

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

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


Expand All @@ -162,7 +162,7 @@ def get_session(uniqueid: int = __(gen_unique_id())) -> Session:
a function instead of a generator:

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

The given function will be called once every time the ``uniqueid`` parameter is omitted.
Expand Down

0 comments on commit 4dd2399

Please sign in to comment.