Skip to content

Commit

Permalink
BAI-1502 fix legacy typing support
Browse files Browse the repository at this point in the history
  • Loading branch information
PE39806 committed Nov 15, 2024
1 parent 6ff92e5 commit fe40643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modelscan_api/bailo_modelscan_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from __future__ import annotations

import logging
from typing import Any
from typing import Any, Optional

from modelscan.settings import DEFAULT_SETTINGS
from pydantic_settings import BaseSettings, SettingsConfigDict
Expand All @@ -26,7 +26,7 @@ class Settings(BaseSettings):
You can upload files and view modelscan's result."""
app_version: str = "1.0.0"
# download_dir is used if it evaluates, otherwise a temporary directory is used.
download_dir: str | None = None
download_dir: Optional[str] = None
modelscan_settings: dict[str, Any] = DEFAULT_SETTINGS
block_size: int = 1024

Expand Down

0 comments on commit fe40643

Please sign in to comment.