summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/context.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/orm/context.py
parent66e591cf8a5de6d5dabdecf2bb279dec90962e15 (diff)
downloadsqlalchemy-d10b62f54e6b9dd0613c0412b924c1b346ec1611.tar.gz
Improve typings of execution options
Fixes: #8605 Change-Id: I4aec83b9f321462427c3f4ac941c3b272255c088
Diffstat (limited to 'lib/sqlalchemy/orm/context.py')
-rw-r--r--lib/sqlalchemy/orm/context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/context.py b/lib/sqlalchemy/orm/context.py
index 8dca83756..60ccecdb7 100644
--- a/lib/sqlalchemy/orm/context.py
+++ b/lib/sqlalchemy/orm/context.py
@@ -68,6 +68,7 @@ from ..sql.visitors import InternalTraversal
if TYPE_CHECKING:
from ._typing import _InternalEntityType
+ from ._typing import OrmExecuteOptionsParameter
from .loading import PostLoad
from .mapper import Mapper
from .query import Query
@@ -75,7 +76,6 @@ if TYPE_CHECKING:
from .session import Session
from ..engine import Result
from ..engine.interfaces import _CoreSingleExecuteParams
- from ..engine.interfaces import _ExecuteOptionsParameter
from ..sql._typing import _ColumnsClauseArgument
from ..sql.compiler import SQLCompiler
from ..sql.dml import _DMLTableElement
@@ -150,7 +150,7 @@ class QueryContext:
Type[QueryContext.default_load_options],
QueryContext.default_load_options,
],
- execution_options: Optional[_ExecuteOptionsParameter] = None,
+ execution_options: Optional[OrmExecuteOptionsParameter] = None,
bind_arguments: Optional[_BindArguments] = None,
):
self.load_options = load_options