Skip to content

Commit 995c197

Browse files
committed
Fixing the pylint warnings
1 parent dc7097a commit 995c197

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

elephant/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def connection_dependency_sync() -> Generator[Connection, None, None]:
4242
# --- Async connection pool (used by the web server) ---
4343

4444
async def create_pool(min_size: int = 2, max_size: int = 10) -> None:
45-
global _pool
45+
global _pool # pylint: disable=global-statement
4646
pool = AsyncConnectionPool(
4747
conninfo=_database_url(),
4848
min_size=min_size,
@@ -54,7 +54,7 @@ async def create_pool(min_size: int = 2, max_size: int = 10) -> None:
5454

5555

5656
async def close_pool() -> None:
57-
global _pool
57+
global _pool # pylint: disable=global-statement
5858
if _pool:
5959
await _pool.close()
6060
_pool = None

0 commit comments

Comments
 (0)