summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/selectable.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2022-10-17 22:02:13 +0200
committerMike Bayer <mike_mp@zzzcomputing.com>2022-11-02 21:38:31 -0400
commitd10b62f54e6b9dd0613c0412b924c1b346ec1611 (patch)
tree07d246255d0372c5a7839e1aec354edacf687fdf /lib/sqlalchemy/sql/selectable.py
parent66e591cf8a5de6d5dabdecf2bb279dec90962e15 (diff)
downloadsqlalchemy-d10b62f54e6b9dd0613c0412b924c1b346ec1611.tar.gz
Improve typings of execution options
Fixes: #8605 Change-Id: I4aec83b9f321462427c3f4ac941c3b272255c088
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
-rw-r--r--lib/sqlalchemy/sql/selectable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py
index 7c73255d7..9de015774 100644
--- a/lib/sqlalchemy/sql/selectable.py
+++ b/lib/sqlalchemy/sql/selectable.py
@@ -105,7 +105,6 @@ and_ = BooleanClauseList.and_
_T = TypeVar("_T", bound=Any)
if TYPE_CHECKING:
- import sqlalchemy
from ._typing import _ColumnExpressionArgument
from ._typing import _FromClauseArgument
from ._typing import _JoinTargetArgument
@@ -130,6 +129,7 @@ if TYPE_CHECKING:
from .cache_key import _CacheKeyTraversalType
from .compiler import SQLCompiler
from .dml import Delete
+ from .dml import Insert
from .dml import Update
from .elements import KeyedColumnElement
from .elements import Label
@@ -2997,7 +2997,7 @@ class TableClause(roles.DMLTableRole, Immutable, NamedFromClause):
c.table = self
@util.preload_module("sqlalchemy.sql.dml")
- def insert(self) -> sqlalchemy.sql.expression.Insert:
+ def insert(self) -> Insert:
"""Generate an :func:`_expression.insert` construct against this
:class:`_expression.TableClause`.