diff --git a/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi b/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi index 5c39dfc8b0b8..2de0c2ab581b 100644 --- a/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi +++ b/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi @@ -1,4 +1,5 @@ from _typeshed import Incomplete +from collections.abc import Iterator class ADPersistentSearch: connection: Incomplete @@ -12,4 +13,4 @@ class ADPersistentSearch: def start(self) -> None: ... def stop(self, unbind: bool = True) -> None: ... def next(self, block: bool = False, timeout=None): ... - def funnel(self, block: bool = False, timeout=None) -> None: ... + def funnel(self, block: bool = False, timeout=None) -> Iterator[Incomplete]: ... diff --git a/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi b/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi index d651eff6afda..5e73e5c29fef 100644 --- a/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi +++ b/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi @@ -1,3 +1,6 @@ +from _typeshed import Incomplete +from collections.abc import Iterator + def paged_search_generator( connection, search_base, @@ -12,7 +15,7 @@ def paged_search_generator( controls=None, paged_size: int = 100, paged_criticality: bool = False, -) -> None: ... +) -> Iterator[Incomplete]: ... def paged_search_accumulator( connection, search_base, diff --git a/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi b/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi index 8b059d36c29e..0993c7f000df 100644 --- a/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi +++ b/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi @@ -1,4 +1,5 @@ from _typeshed import Incomplete +from collections.abc import Iterator class PersistentSearch: connection: Incomplete @@ -33,4 +34,4 @@ class PersistentSearch: def start(self) -> None: ... def stop(self, unbind: bool = True) -> None: ... def next(self, block: bool = False, timeout=None): ... - def funnel(self, block: bool = False, timeout=None) -> None: ... + def funnel(self, block: bool = False, timeout=None) -> Iterator[Incomplete]: ...