Add an overload for simple_select_one_onecol_txn. (#8235)
parent
912e024913
commit
c8758cb72f
|
@ -0,0 +1 @@
|
||||||
|
Add type hints to `StreamStore`.
|
|
@ -1149,6 +1149,30 @@ class DatabasePool(object):
|
||||||
allow_none=allow_none,
|
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
|
@classmethod
|
||||||
def simple_select_one_onecol_txn(
|
def simple_select_one_onecol_txn(
|
||||||
cls,
|
cls,
|
||||||
|
|
Loading…
Reference in New Issue