This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/main by this push:
     new ae53170af PROTON-2879: Use correct type annotation for 
unsettled_deliveries
ae53170af is described below

commit ae53170af7183dfa3e9e057508ba8af4f10ed0fe
Author: Andrew Stitcher <[email protected]>
AuthorDate: Thu Mar 27 15:12:42 2025 -0400

    PROTON-2879: Use correct type annotation for unsettled_deliveries
---
 python/proton/_endpoints.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/python/proton/_endpoints.py b/python/proton/_endpoints.py
index f44b27b0b..448d2014d 100644
--- a/python/proton/_endpoints.py
+++ b/python/proton/_endpoints.py
@@ -63,7 +63,9 @@ from ._exceptions import ConnectionException, EXCEPTIONS, 
LinkException, Session
 from ._handler import Handler
 from ._transport import Transport
 from ._wrapper import Wrapper
-from typing import Any, Dict, Generator, List, Optional, Union, TYPE_CHECKING
+
+from collections.abc import Iterator
+from typing import Any, Dict, List, Optional, Union, TYPE_CHECKING
 
 if TYPE_CHECKING:
     from ._condition import Condition
@@ -899,7 +901,7 @@ class Link(Wrapper, Endpoint):
         return Delivery.wrap(pn_unsettled_head(self._impl))
 
     @property
-    def unsettled_deliveries(self) -> Generator[Delivery]:
+    def unsettled_deliveries(self) -> Iterator[Delivery]:
         """
         Returns a generator of unsettled deliveries for this link.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to