Skip to content

Commit 044c0f4

Browse files
committed
remove unused imports
1 parent 1bbd562 commit 044c0f4

13 files changed

Lines changed: 46 additions & 49 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies = [
2424
"pytest>=8.0.0",
2525
"python-dotenv==1.0.1",
2626
"requests==2.32.3",
27-
"returns[compatible-mypy]==0.22.0",
27+
"returns[compatible-mypy]>=0.26.0",
2828
"seaborn==0.13.2",
2929
"tabulate>=0.9.0",
3030
"tenacity>=9.1.2",

src/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import os
2-
from typing import Callable
32
import json
43
import logging
54

65
from funcy_chain import Chain
76
from funcy import lmap
87
from tqdm import tqdm
98
from dacite import from_dict
10-
from returns.result import ResultE, Success, Failure
9+
from returns.result import ResultE
1110

1211
import fire
1312
from tfbench.common import (

src/tfbench/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
from . import env

src/tfbench/env.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import os
2-
3-
from dotenv import load_dotenv, dotenv_values
1+
from dotenv import dotenv_values
42

53
ENV = dotenv_values(".env")
64

src/tfbench/experiment.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
"""
22
Experiment script for OpenAI models
33
"""
4-
5-
from typing import Callable
6-
import logging
7-
8-
9-
from .lm import get_sys_prompt, MAX_TOKENS
10-
11-
DEEPSEEK_MODELS = [
12-
"deepseek-reasoner",
13-
"deepseek-chat",
14-
]

src/tfbench/lm/_anthropic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from typing import Callable
2-
from anthropic import Anthropic, InternalServerError, NOT_GIVEN
1+
from anthropic import Anthropic
32
from ..env import ENV
43
from ._types import LM, LMAnswer, ReasoningEffort, EFFORT_TOKEN_MAP
54
from .settings import MAX_TOKENS

src/tfbench/lm/_google.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Inference helper for Google Gemini"""
22

3-
from typing import Literal, Mapping
4-
from enum import Enum
3+
from typing import Literal
54

65
from google import genai
76
from google.genai.types import GenerateContentConfig, ThinkingConfig

src/tfbench/lm/_ollama.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ def _gen(self, prompt: str) -> LMAnswer:
3636
think=True,
3737
)
3838
return LMAnswer(
39-
answer=response.message.content,
40-
reasoning_steps=response.message.thinking,
39+
answer=response.message.content, # type: ignore
40+
reasoning_steps=response.message.thinking, # type: ignore
4141
)

src/tfbench/lm/_openai.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import get_args
2-
31
from openai import OpenAI, NOT_GIVEN
42
from openai.types.shared.reasoning_effort import ReasoningEffort
53

src/tfbench/lm/_types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from abc import ABC, abstractmethod
2-
from enum import StrEnum
32
from dataclasses import dataclass
43
from typing import Literal
54

0 commit comments

Comments
 (0)