diff options
Diffstat (limited to 'lib/sqlalchemy/engine/mock.py')
-rw-r--r-- | lib/sqlalchemy/engine/mock.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/engine/mock.py b/lib/sqlalchemy/engine/mock.py index c94dd1032..2d5707b53 100644 --- a/lib/sqlalchemy/engine/mock.py +++ b/lib/sqlalchemy/engine/mock.py @@ -28,7 +28,7 @@ if typing.TYPE_CHECKING: from .interfaces import Dialect from .url import URL from ..sql.base import Executable - from ..sql.ddl import DDLElement + from ..sql.ddl import ExecutableDDLElement from ..sql.ddl import SchemaDropper from ..sql.ddl import SchemaGenerator from ..sql.schema import HasSchemaAttr @@ -101,8 +101,8 @@ def create_mock_engine(url: URL, executor: Any, **kw: Any) -> MockConnection: :param executor: a callable which receives the arguments ``sql``, ``*multiparams`` and ``**params``. The ``sql`` parameter is typically - an instance of :class:`.DDLElement`, which can then be compiled into a - string using :meth:`.DDLElement.compile`. + an instance of :class:`.ExecutableDDLElement`, which can then be compiled + into a string using :meth:`.ExecutableDDLElement.compile`. .. versionadded:: 1.4 - the :func:`.create_mock_engine` function replaces the previous "mock" engine strategy used with |