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

Update file download.py

parent 87b04b25
No related branches found
No related tags found
No related merge requests found
Pipeline #171548 passed with warnings
......@@ -15,7 +15,7 @@ import zlib
from contextlib import nullcontext
from typing import Any, Dict, List, Union, Callable
from urllib.parse import urlencode
from pydantic import BaseModel, Field, validator, Extra # pylint: disable = no-name-in-module, line-too-long # noqa: E501
from pydantic import BaseModel, Field, validator, Extra, ConfigDict # pylint: disable = no-name-in-module, line-too-long # noqa: E501
from requests.adapters import HTTPAdapter, Retry
import requests
from tqdm.autonotebook import tqdm
......@@ -557,12 +557,14 @@ class Properties(BaseModel): # pylint: disable = too-few-public-methods
services: Services = Field(alias="services")
class Feature(BaseModel, extra=Extra.allow):
class Feature(BaseModel):
"""
Feature model
Extended with custom functions to be helpful
"""
model_config = ConfigDict(extra="forbid")
_requests_mgr: RequestsManager
_remote_zip: RemoteZip = None
id: str = Field(alias="id")
......
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