mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: upgrade black (#19410)
This commit is contained in:
@@ -73,7 +73,9 @@ class UpdateAnnotationCommand(BaseCommand):
|
||||
|
||||
# Validate short descr uniqueness on this layer
|
||||
if not AnnotationDAO.validate_update_uniqueness(
|
||||
layer_id, short_descr, annotation_id=self._model_id,
|
||||
layer_id,
|
||||
short_descr,
|
||||
annotation_id=self._model_id,
|
||||
):
|
||||
exceptions.append(AnnotationUniquenessValidationError())
|
||||
else:
|
||||
|
||||
@@ -64,13 +64,17 @@ class AnnotationPostSchema(Schema):
|
||||
)
|
||||
long_descr = fields.String(description=annotation_long_descr, allow_none=True)
|
||||
start_dttm = fields.DateTime(
|
||||
description=annotation_start_dttm, required=True, allow_none=False,
|
||||
description=annotation_start_dttm,
|
||||
required=True,
|
||||
allow_none=False,
|
||||
)
|
||||
end_dttm = fields.DateTime(
|
||||
description=annotation_end_dttm, required=True, allow_none=False
|
||||
)
|
||||
json_metadata = fields.String(
|
||||
description=annotation_json_metadata, validate=validate_json, allow_none=True,
|
||||
description=annotation_json_metadata,
|
||||
validate=validate_json,
|
||||
allow_none=True,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user