mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-13 04:07:20 -04:00
Typing: url in create_mock_engine can be a string (#9980)
* Typing: url in create_mock_engine can be a string Similar to create_engine * run back on the code Change-Id: Ie92aaa121e587c93f2d9c0b8c06f194685bb070e --------- Co-authored-by: Federico Caselli <cfederico87@gmail.com>
This commit is contained in:
@@ -69,7 +69,9 @@ class MockConnection:
|
||||
return self._execute_impl(obj, parameters)
|
||||
|
||||
|
||||
def create_mock_engine(url: URL, executor: Any, **kw: Any) -> MockConnection:
|
||||
def create_mock_engine(
|
||||
url: Union[str, URL], executor: Any, **kw: Any
|
||||
) -> MockConnection:
|
||||
"""Create a "mock" engine used for echoing DDL.
|
||||
|
||||
This is a utility function used for debugging or storing the output of DDL
|
||||
|
||||
Reference in New Issue
Block a user