commit: 99f86d9a7a407c78d5138ac05a5f2583cc995237
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Fri Dec 5 20:49:40 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Fri Dec 5 20:49:50 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=99f86d9a
chore(sequences): suppress type complaints for iflatten_func and the edge case
(str,bytes)
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
src/snakeoil/sequences.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/snakeoil/sequences.py b/src/snakeoil/sequences.py
index 3d82a85..92ef4a1 100644
--- a/src/snakeoil/sequences.py
+++ b/src/snakeoil/sequences.py
@@ -172,7 +172,7 @@ def iflatten_func(
skipped due to a True result from skip_func)
"""
if skip_func(iterable): # pyright: ignore[reportArgumentType]
- yield iterable
+ yield iterable # pyright: ignore[reportReturnType]
return
iters = expandable_chain[T](iterable) # pyright:
ignore[reportArgumentType]
try: