Skip to content

Commit 4bb7738

Browse files
committed
refactor: remove Python <3.13 compatibility code
1 parent b52e654 commit 4bb7738

6 files changed

Lines changed: 2 additions & 22 deletions

File tree

src/balatrobench/extractor.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
import json
44
from collections.abc import Iterator
55
from pathlib import Path
6-
from typing import TYPE_CHECKING, Any
7-
8-
if TYPE_CHECKING:
9-
from typing import Literal
6+
from typing import Any, Literal
107

118
from .models import Request
129

tests/conftest.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
"""Shared pytest fixtures for balatrobench tests."""
22

3-
from __future__ import annotations
4-
53
from pathlib import Path
6-
from typing import TYPE_CHECKING
74

85
import pytest
96

10-
if TYPE_CHECKING:
11-
from balatrobench.models import Model, Stats, Strategy
7+
from balatrobench.models import Model, Stats, Strategy
128

139

1410
@pytest.fixture

tests/integration/test_analysis_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
produces correct output structures.
55
"""
66

7-
from __future__ import annotations
8-
97
from pathlib import Path
108

119
import pytest

tests/integration/test_full_benchmark.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
Tests the complete CLI → BenchmarkAnalyzer → BenchmarkWriter output flow.
44
"""
55

6-
from __future__ import annotations
7-
86
import json
97
from pathlib import Path
108

tests/unit/test_analyzer.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
"""Unit tests for balatrobench.analyzer module."""
22

3-
from __future__ import annotations
4-
53
from pathlib import Path
6-
from typing import TYPE_CHECKING
74
from unittest.mock import patch
85

96
import pytest
@@ -19,10 +16,6 @@
1916
Strategy,
2017
)
2118

22-
if TYPE_CHECKING:
23-
pass
24-
25-
2619
# =============================================================================
2720
# Fixtures
2821
# =============================================================================

tests/unit/test_extractor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Unit tests for balatrobench.extractor module."""
22

3-
from __future__ import annotations
4-
53
import json
64
from pathlib import Path
75

0 commit comments

Comments
 (0)