@@ -277,7 +277,8 @@ async def execute(self, query: str, *args, timeout: float=None) -> str:
277
277
_ , status , _ = await self ._execute (query , args , 0 , timeout , True )
278
278
return status .decode ()
279
279
280
- async def executemany (self , command : str , args , * , timeout : float = None ) -> None :
280
+ async def executemany (self , command : str , args , * , timeout : float = None ) \
281
+ -> None :
281
282
"""Execute an SQL *command* for each sequence of arguments in *args*.
282
283
283
284
Example:
@@ -380,7 +381,8 @@ async def _introspect_types(self, typeoids, timeout):
380
381
return await self .__execute (
381
382
self ._intro_query , (list (typeoids ),), 0 , timeout )
382
383
383
- def cursor (self , query , * args , prefetch = None , timeout = None ) -> cursor .CursorFactory :
384
+ def cursor (self , query , * args , prefetch = None , timeout = None ) \
385
+ -> cursor .CursorFactory :
384
386
"""Return a *cursor factory* for the specified query.
385
387
386
388
:param args: Query arguments.
@@ -394,7 +396,8 @@ def cursor(self, query, *args, prefetch=None, timeout=None) -> cursor.CursorFact
394
396
return cursor .CursorFactory (self , query , None , args ,
395
397
prefetch , timeout )
396
398
397
- async def prepare (self , query , * , timeout = None ) -> prepared_stmt .PreparedStatement :
399
+ async def prepare (self , query , * , timeout = None ) \
400
+ -> prepared_stmt .PreparedStatement :
398
401
"""Create a *prepared statement* for the specified query.
399
402
400
403
:param str query: Text of the query to create a prepared statement for.
@@ -410,7 +413,8 @@ async def _prepare(self, query, *, timeout=None, use_cache: bool=False):
410
413
use_cache = use_cache )
411
414
return prepared_stmt .PreparedStatement (self , query , stmt )
412
415
413
- async def fetch (self , query , * args , timeout = None ) -> typing .List [protocol .Record ]:
416
+ async def fetch (self , query , * args , timeout = None ) \
417
+ -> typing .List [protocol .Record ]:
414
418
"""Run a query and return the results as a list of :class:`Record`.
415
419
416
420
:param str query: Query text.
@@ -422,7 +426,8 @@ async def fetch(self, query, *args, timeout=None) -> typing.List[protocol.Record
422
426
self ._check_open ()
423
427
return await self ._execute (query , args , 0 , timeout )
424
428
425
- async def fetchval (self , query , * args , column = 0 , timeout = None ) -> typing .Any :
429
+ async def fetchval (self , query , * args , column = 0 , timeout = None ) \
430
+ -> typing .Any :
426
431
"""Run a query and return a value in the first row.
427
432
428
433
:param str query: Query text.
@@ -443,7 +448,8 @@ async def fetchval(self, query, *args, column=0, timeout=None) -> typing.Any:
443
448
return None
444
449
return data [0 ][column ]
445
450
446
- async def fetchrow (self , query , * args , timeout = None ) -> typing .Optional [protocol .Record ]:
451
+ async def fetchrow (self , query , * args , timeout = None ) \
452
+ -> typing .Optional [protocol .Record ]:
447
453
"""Run a query and return the first row.
448
454
449
455
:param str query: Query text
@@ -463,7 +469,8 @@ async def copy_from_table(self, table_name, *, output,
463
469
columns = None , schema_name = None , timeout = None ,
464
470
format = None , oids = None , delimiter = None ,
465
471
null = None , header = None , quote = None ,
466
- escape = None , force_quote = None , encoding = None ) -> str :
472
+ escape = None , force_quote = None , encoding = None ) \
473
+ -> str :
467
474
"""Copy table contents to a file or file-like object.
468
475
469
476
:param str table_name:
0 commit comments