From 88a45ea5a4a0640374290141a3feedcdc4ede6ed Mon Sep 17 00:00:00 2001 From: Colin Blackburn Date: Wed, 13 Sep 2023 14:16:33 +0100 Subject: [PATCH] Return type can be None --- etlhelper/etl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etlhelper/etl.py b/etlhelper/etl.py index be4779d..f13113a 100644 --- a/etlhelper/etl.py +++ b/etlhelper/etl.py @@ -175,7 +175,7 @@ def fetchone( row_factory: Callable = dict_row_factory, transform: Optional[Callable[[Chunk], Chunk]] = None, chunk_size: int = 1 - ) -> Row: + ) -> Optional[Row]: """ Get first result of query. See iter_rows for details. Note: iter_rows is recommended for looping over rows individually.