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: ```