From 2337dc29d9d8b4369de78d46e6638de755404434 Mon Sep 17 00:00:00 2001 From: Thomas Erlang Date: Sun, 5 Nov 2023 22:10:56 +0100 Subject: [PATCH] Fix asyncclient url wrong type --- seplis_play_server/client.py | 2 +- seplis_play_server/config.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/seplis_play_server/client.py b/seplis_play_server/client.py index aa58b8b..cbc3b7e 100644 --- a/seplis_play_server/client.py +++ b/seplis_play_server/client.py @@ -2,5 +2,5 @@ from seplis_play_server import config client = AsyncClient( - base_url=config.api_url, + base_url=str(config.api_url), ) \ No newline at end of file diff --git a/seplis_play_server/config.py b/seplis_play_server/config.py index 8b66cd8..7be8c49 100644 --- a/seplis_play_server/config.py +++ b/seplis_play_server/config.py @@ -1,9 +1,7 @@ import os, pathlib import tempfile from typing import Literal -from pydantic_core.core_schema import FieldValidationInfo -from typing_extensions import Annotated -from pydantic import AnyHttpUrl, BaseModel, Field, conint, field_validator +from pydantic import AnyHttpUrl, BaseModel from pydantic_settings import BaseSettings, SettingsConfigDict import yaml