Skip to content
Snippets Groups Projects
Unverified Commit c8758cb7 authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Add an overload for simple_select_one_onecol_txn. (#8235)

parent 912e0249
No related branches found
No related tags found
No related merge requests found
Add type hints to `StreamStore`.
......@@ -1149,6 +1149,30 @@ class DatabasePool(object):
allow_none=allow_none,
)
@overload
@classmethod
def simple_select_one_onecol_txn(
cls,
txn: LoggingTransaction,
table: str,
keyvalues: Dict[str, Any],
retcol: Iterable[str],
allow_none: Literal[False] = False,
) -> Any:
...
@overload
@classmethod
def simple_select_one_onecol_txn(
cls,
txn: LoggingTransaction,
table: str,
keyvalues: Dict[str, Any],
retcol: Iterable[str],
allow_none: Literal[True] = True,
) -> Optional[Any]:
...
@classmethod
def simple_select_one_onecol_txn(
cls,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment