From c5aa734cad3d4a8a1f01d113fff05198218e7879 Mon Sep 17 00:00:00 2001 From: stuppie Date: Thu, 27 Aug 2026 17:46:17 -0600 Subject: Leaderboard id & name optional; set by validators --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index fd55201..2d1d246 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "generalresearch" -version = "3.4.2" +version = "3.4.3" description = "Python Utilities for General Research" readme = "README.md" requires-python = ">=3.10" -- cgit v1.2.3 From ec850b9ddd5cf520646f0f8c4a5f0a996b78ac94 Mon Sep 17 00:00:00 2001 From: stuppie Date: Fri, 28 Aug 2026 10:56:58 -0600 Subject: fix broken ruff imports. fastapi isnt a dependency --- generalresearch/models/thl/survey/penalty.py | 5 ++--- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'pyproject.toml') diff --git a/generalresearch/models/thl/survey/penalty.py b/generalresearch/models/thl/survey/penalty.py index e9515d4..0f544b8 100644 --- a/generalresearch/models/thl/survey/penalty.py +++ b/generalresearch/models/thl/survey/penalty.py @@ -2,10 +2,9 @@ from __future__ import annotations import abc from datetime import datetime, timezone -from typing import Literal +from typing import Annotated, Literal from pydantic import BaseModel, ConfigDict, Field, TypeAdapter -from typing_extensions import Annotated from generalresearch.models import Source from generalresearch.models.custom_types import ( @@ -59,7 +58,7 @@ class TeamSurveyPenalty(SurveyPenalty): Penalty = Annotated[ - Union[BPSurveyPenalty, TeamSurveyPenalty], + BPSurveyPenalty | TeamSurveyPenalty, Field(discriminator="kind"), ] PenaltyListAdapter = TypeAdapter(list[Penalty]) diff --git a/pyproject.toml b/pyproject.toml index 2d1d246..e855d16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta" [project] name = "generalresearch" -version = "3.4.3" +version = "3.4.4" description = "Python Utilities for General Research" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "fastapi", +# "fastapi", "Faker", "PyMySQL", "psycopg", -- cgit v1.2.3