From de9d06566018e136aa2cb0384ef148e650ee80c1 Mon Sep 17 00:00:00 2001 From: apalala Date: Sun, 12 Nov 2023 09:42:50 -0400 Subject: [PATCH] [readme] more example tweaking --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4140847..f5cc2c1 100644 --- a/README.md +++ b/README.md @@ -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: ```