Skip to content
Snippets Groups Projects
Commit 66e3bcfe authored by Cresson Remi's avatar Cresson Remi
Browse files

Update file download.py

parent 1ff67288
No related branches found
No related tags found
1 merge request!5WIP: pydantic v2
Pipeline #171557 passed with warnings
......@@ -30,7 +30,7 @@ SECONDS_BTW_RETRIES = 2
class ProgressStub:
"""
TQDM stub
"""
def __init__(self, *args, **kwargs):
"""
......@@ -519,7 +519,11 @@ class Download(BaseModel): # pylint: disable = too-few-public-methods
checksum: str = Field(alias="checksum")
@field_validator("url")
def make_url(cls, url: str, info: FieldValidationInfo) -> str: # pylint: disable=no-self-argument
def make_url(
cls,
url: str,
info: FieldValidationInfo
) -> str: # pylint: disable=no-self-argument
"""
Model validator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment