Skip to content

Commit

Permalink
ruff had a version bump with a new formatter
Browse files Browse the repository at this point in the history
Signed-off-by: technillogue <technillogue@gmail.com>
  • Loading branch information
technillogue committed Mar 5, 2024
1 parent b2f3232 commit b8fd869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/cog/command/openapi_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This prints a JSON object describing the inputs of the model.
"""

import json

from ..errors import CogError, ConfigDoesNotExist, PredictorNotSet
Expand Down
6 changes: 3 additions & 3 deletions python/cog/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ class PredictionRequest(PredictionBaseModel):
output_file_prefix: t.Optional[str]

webhook: t.Optional[pydantic.AnyHttpUrl]
webhook_events_filter: t.Optional[
t.List[WebhookEvent]
] = WebhookEvent.default_events()
webhook_events_filter: t.Optional[t.List[WebhookEvent]] = (
WebhookEvent.default_events()
)

@classmethod
def with_types(cls, input_type: t.Type[t.Any]) -> t.Any:
Expand Down

0 comments on commit b8fd869

Please sign in to comment.