From fa4b623438b1da37c543faad862259f1ef7f7667 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 00:21:58 +0100 Subject: [PATCH 1/2] =?UTF-8?q?chore(pre-commit):=20=E2=AC=86=20pre=5Fcomm?= =?UTF-8?q?it=20autoupdate=20(#792)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.15.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.4...v0.15.5) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f71d0f634..528a8bf25 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: args: ["--print-width=120"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.4 + rev: v0.15.5 hooks: - id: ruff-check args: [--fix] @@ -51,7 +51,7 @@ repos: args: ["--number"] - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell # args: [--write-changes] From af8e96f65bf9defadd9168d0a333a0282e3df691 Mon Sep 17 00:00:00 2001 From: sjhddh Date: Wed, 11 Mar 2026 07:17:23 +0000 Subject: [PATCH 2/2] fix: add missing Optional type hint for class_names --- src/rfdetr/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rfdetr/config.py b/src/rfdetr/config.py index 4ee6af5ea..27b9cc74f 100644 --- a/src/rfdetr/config.py +++ b/src/rfdetr/config.py @@ -329,7 +329,7 @@ class TrainConfig(BaseModel): clearml: bool = False project: Optional[str] = None run: Optional[str] = None - class_names: List[str] = None + class_names: Optional[List[str]] = None run_test: bool = False segmentation_head: bool = False eval_max_dets: int = 500