diff --git a/aioodbc/connection.py b/aioodbc/connection.py index 8e7ccab..eaa9d5d 100644 --- a/aioodbc/connection.py +++ b/aioodbc/connection.py @@ -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 )