Skip to content

Commit 56756c1

Browse files
committed
fix typing
1 parent 7bc291c commit 56756c1

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

autointent/_dump_tools/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ModuleAttributes: TypeAlias = (
1616
ModuleSimpleAttributes
1717
| TagsList
18-
| np.ndarray # type: ignore[type-arg]
18+
| np.ndarray
1919
| Embedder
2020
| VectorIndex
2121
| BaseEstimator

autointent/_dump_tools/unit_dumpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from peft import PeftModel
1313
from pydantic import BaseModel
1414
from sklearn.base import BaseEstimator
15-
from transformers import ( # type: ignore[attr-defined]
15+
from transformers import (
1616
AutoModelForSequenceClassification,
1717
AutoTokenizer,
1818
PreTrainedModel,

autointent/context/data_handler/_stratification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from numpy import typing as npt
1414
from sklearn.model_selection import train_test_split
1515
from skmultilearn.model_selection import IterativeStratification
16-
from transformers import set_seed # type: ignore[attr-defined]
16+
from transformers import set_seed
1717

1818
from autointent import Dataset
1919
from autointent.custom_types import LabelType

autointent/modules/scoring/_bert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import torch
1010
from datasets import Dataset, DatasetDict
1111
from sklearn.model_selection import train_test_split
12-
from transformers import ( # type: ignore[attr-defined]
12+
from transformers import (
1313
AutoModelForSequenceClassification,
1414
AutoTokenizer,
1515
DataCollatorWithPadding,

pyproject.toml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ docs = [
8989
"sphinx-toolbox (>=4.0.0,<5.0.0)",
9090
"sphinx-llms-txt (>=0.3.0,<0.4.0)"
9191
]
92-
# dspy = [
93-
# "dspy (>=2.6.5,<3.0.0)",
94-
# ]
95-
# wandb = [
96-
# "wandb (>=0.19.10,<1.0.0)",
97-
# ]
92+
dspy = [
93+
"dspy (>=2.6.5,<3.0.0)",
94+
]
95+
wandb = [
96+
"wandb (>=0.19.10,<1.0.0)",
97+
]
9898
# codecarbon = [
9999
# "codecarbon (>=3.0.2, <3.1.0)",
100100
# "pynvml (>=8.0.4, <12.0.0)", # to avoid "attribute nvmlDeviceGetTotalEnergyConsumption not found" error
@@ -105,6 +105,7 @@ fastapi = [
105105
"pydantic-settings (>=2.0, <3.0)"
106106
]
107107
fastmcp = [
108+
"pydantic-settings (>=2.0, <3.0)",
108109
"fastmcp (>=2.11.3, <3.0)"
109110
]
110111

@@ -257,3 +258,10 @@ module = [
257258
]
258259
warn_unreachable = false
259260

261+
[[tool.mypy.overrides]]
262+
module = [
263+
"autointent.server.http",
264+
"autointent.server.mcp",
265+
]
266+
ignore_errors = true
267+

0 commit comments

Comments
 (0)