From 50fcc2a7862d8ca2e4b57e4376697d535e3f73dc Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Tue, 19 Dec 2023 18:54:56 +0100 Subject: [PATCH] WIP: Add change log and migration guide entries. --- newsfragments/3661.changed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/3661.changed.md diff --git a/newsfragments/3661.changed.md b/newsfragments/3661.changed.md new file mode 100644 index 00000000000..8245a6f1a80 --- /dev/null +++ b/newsfragments/3661.changed.md @@ -0,0 +1 @@ +The `Iter(A)NextOutput` types are now deprecated and `__(a)next__` can directly return anything which can be converted into Python objects, i.e. awaitables do not need to be wrapped into `IterANextOutput` or `Option` any more. `Option` can still be used as well and returning `None` will trigger the fast path for `__next__`, stopping iteration without having to raise a `StopIteration` exception.