From 3c8216d9b54704d7dabff6c3c12706b230242d25 Mon Sep 17 00:00:00 2001 From: apalala Date: Mon, 13 Nov 2023 17:09:45 -0400 Subject: [PATCH] [readme] fix omissions in examples --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 82714a4..a5e5505 100644 --- a/README.md +++ b/README.md @@ -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: ``` @@ -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: ```