Skip to content

Commit

Permalink
Fix Connection.connection to return _ConnectionFairy as documented (
Browse files Browse the repository at this point in the history
  • Loading branch information
rouge8 authored Jun 4, 2022
1 parent d04a1ef commit 1fffd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlalchemy-stubs/engine/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ from .._typing import _ExecuteOptions
from .._typing import _ExecuteParams
from ..exc import StatementError
from ..pool import Pool
from ..pool.base import _ConnectionFairy

_T = TypeVar("_T")
_T_co = TypeVar("_T_co", covariant=True)
Expand Down Expand Up @@ -64,7 +65,7 @@ class Connection(_ConnectionTypingCommon, Connectable):
def execution_options(self: _TConnection, **opt: Any) -> _TConnection: ...
def get_execution_options(self) -> _ExecuteOptions: ...
@property
def connection(self) -> _DBAPIConnection: ...
def connection(self) -> _ConnectionFairy: ...
def get_isolation_level(self) -> Any: ...
@property
def info(self) -> MutableMapping[Any, Any]: ...
Expand Down

0 comments on commit 1fffd91

Please sign in to comment.