Skip to content

Commit

Permalink
Provide precise return type for connection.cursor()
Browse files Browse the repository at this point in the history
  • Loading branch information
Serious-senpai authored Sep 16, 2024
1 parent 62069a2 commit 9f7a9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioodbc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def _cursor(self):
connection = self
return Cursor(c, connection, echo=self._echo)

def cursor(self) -> _ContextManager:
def cursor(self) -> _ContextManager["Cursor"]:
return _ContextManager["Cursor"](
self._cursor(), _close_cursor, _close_cursor_on_error
)
Expand Down

0 comments on commit 9f7a9b6

Please sign in to comment.