Fixes: #6915
Closes: #6916
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6916
Pull-request-sha:
6ec484d3d14b7dd7053d10a5d550bd74eb524c8b
Change-Id: I2c87fbed44870110e35a69ee9a9e678671eeb8f0
dialect_cls = entrypoint.get_dialect_cls(self)
return dialect_cls
- def translate_connect_args(self, names=[], **kw):
+ def translate_connect_args(self, names=None, **kw):
r"""Translate url attributes into a dictionary of connection arguments.
Returns attributes of this url (`host`, `database`, `username`,
table,
drop_ok=False,
_is_metadata_operation=False,
- _ignore_sequences=[],
+ _ignore_sequences=(),
):
if not drop_ok and not self._can_drop_table(table):
return
"""
+ kwonlydefaults = kwonlydefaults or {}
+ annotations = annotations or {}
+
def formatargandannotation(arg):
result = formatarg(arg)
if arg in annotations: