File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1414
1515# no stubs available, starting out by just determining correct return
1616# types & annotating in my wrappers here
17- import aiopg
17+ import aiopg # type: ignore
1818
1919LOGGER = logging .getLogger (__name__ )
2020
@@ -83,9 +83,7 @@ def _sync_try_connect(
8383
8484 dsn = f'dbname={ database } user={ user } password={ password } host={ host } port={ port } '
8585
86- # PENDS python 3.9 support in pylint
87- # pylint: disable=unsubscriptable-object
88- connection : Optional [aiopg .Connection ] = None
86+ connection : Optional [Any ] = None
8987
9088 LOGGER .info (
9189 f'Attempting to connect to database { database } as { user } @{ host } :{ port } ...' )
@@ -121,7 +119,7 @@ async def connect(
121119 return await _try_connect (connection_params )
122120
123121
124- async def sync_connect (
122+ def sync_connect (
125123 connection_params : ConnectionParameters
126124) -> Any :
127125 """Establish database connection."""
You can’t perform that action at this time.
0 commit comments