Skip to content

Commit 37207a0

Browse files
authored
Merge pull request #40 from ISISComputingGroup/pyright_mysql_abstraction_layer
Pyright mysql abstraction layer
2 parents cd2ec5b + b1d1338 commit 37207a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/genie_python/mysql_abstraction_layer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ def _generate_pool_name(self) -> str:
156156
"""
157157
return "DBSVR_%s_%s_%s" % (self._host, self._dbid, self._user)
158158

159-
def _close_handles(self, curs: MySQLCursorAbstract, conn: MySQLConnectionAbstract) -> None:
159+
def _close_handles(
160+
self, curs: MySQLCursorAbstract | None, conn: MySQLConnectionAbstract | None
161+
) -> None:
160162
"""Several methods need to close the cursor and connection handles.
161163
It's a bit complicated and it has been seperated out here.
162164
"""

0 commit comments

Comments
 (0)