mirror of https://github.com/apache/superset.git
fix: Error when using the legacy dataset editor (#25057)
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
This commit is contained in:
parent
60889d27ed
commit
c92a975e4b
|
@ -42,12 +42,13 @@ repos:
|
|||
hooks:
|
||||
- id: mypy
|
||||
args: [--check-untyped-defs]
|
||||
additional_dependencies:
|
||||
[
|
||||
additional_dependencies: [
|
||||
types-simplejson,
|
||||
types-python-dateutil,
|
||||
types-requests,
|
||||
types-redis,
|
||||
# types-redis 4.6.0.5 is failing mypy
|
||||
# because of https://github.com/python/typeshed/pull/10531
|
||||
types-redis==4.6.0.4,
|
||||
types-pytz,
|
||||
types-croniter,
|
||||
types-PyYAML,
|
||||
|
|
|
@ -411,6 +411,7 @@ class TableModelView( # pylint: disable=too-many-ancestors
|
|||
"database": QuerySelectField(
|
||||
"Database",
|
||||
query_func=lambda: db.session.query(models.Database),
|
||||
get_pk_func=lambda item: item.id,
|
||||
widget=Select2Widget(extra_classes="readonly"),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue