mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -18,12 +18,12 @@ from marshmallow import fields, Schema
|
||||
|
||||
|
||||
class ExplorePermalinkStateSchema(Schema):
|
||||
formData = fields.Dict(
|
||||
formData = fields.Dict( # noqa: N815
|
||||
required=True,
|
||||
allow_none=False,
|
||||
metadata={"description": "Chart form data"},
|
||||
)
|
||||
urlParams = fields.List(
|
||||
urlParams = fields.List( # noqa: N815
|
||||
fields.Tuple(
|
||||
(
|
||||
fields.String(
|
||||
@@ -44,17 +44,17 @@ class ExplorePermalinkStateSchema(Schema):
|
||||
|
||||
|
||||
class ExplorePermalinkSchema(Schema):
|
||||
chartId = fields.Integer(
|
||||
chartId = fields.Integer( # noqa: N815
|
||||
required=False,
|
||||
allow_none=True,
|
||||
metadata={"description": "The id of the chart"},
|
||||
)
|
||||
datasourceType = fields.String(
|
||||
datasourceType = fields.String( # noqa: N815
|
||||
required=True,
|
||||
allow_none=False,
|
||||
metadata={"description": "The type of the datasource"},
|
||||
)
|
||||
datasourceId = fields.Integer(
|
||||
datasourceId = fields.Integer( # noqa: N815
|
||||
required=False,
|
||||
allow_none=True,
|
||||
metadata={"description": "The id of the datasource"},
|
||||
|
||||
Reference in New Issue
Block a user