Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Feb 23, 2024
1 parent 90729f1 commit ead6cb6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/file.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from enum import Enum
from urllib.parse import urlparse
from urllib.parse import unquote
from urllib.parse import unquote, urlparse

from pydantic import BaseModel, validator

Expand Down Expand Up @@ -36,7 +35,7 @@ class File(BaseModel):
type: FileType | None = None

@validator("type", pre=True, always=True)
def set_type_from_url(cls, v, values):
def set_type_from_url(cls, v, values): # noqa: F841
if v is not None:
return v
url = values.get("url")
Expand Down

0 comments on commit ead6cb6

Please sign in to comment.