Skip to content

Commit b1d1338

Browse files
committed
Pyright mysql abstraction layer
1 parent dce4268 commit b1d1338

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)