@@ -311,7 +311,7 @@ def is_in_transaction(self):
311
311
"""
312
312
return self ._protocol .is_in_transaction ()
313
313
314
- async def execute (self , query : str , * args , timeout : float = None ) -> str :
314
+ async def execute (self , query : str , * args , timeout : typing . Optional [ float ] = None ) -> str :
315
315
"""Execute an SQL command (or commands).
316
316
317
317
This method can execute many SQL commands at once, when no arguments
@@ -358,7 +358,7 @@ async def execute(self, query: str, *args, timeout: float=None) -> str:
358
358
)
359
359
return status .decode ()
360
360
361
- async def executemany (self , command : str , args , * , timeout : float = None ):
361
+ async def executemany (self , command : str , args , * , timeout : typing . Optional [ float ] = None ):
362
362
"""Execute an SQL *command* for each sequence of arguments in *args*.
363
363
364
364
Example:
@@ -757,7 +757,7 @@ async def fetchrow(
757
757
return data [0 ]
758
758
759
759
async def fetchmany (
760
- self , query , args , * , timeout : float = None , record_class = None
760
+ self , query , args , * , timeout : typing . Optional [ float ] = None , record_class = None
761
761
):
762
762
"""Run a query for each sequence of arguments in *args*
763
763
and return the results as a list of :class:`Record`.
0 commit comments