Skip to content

Commit be1ad07

Browse files
committed
Ignore for now, so that we dont have to rely on brand new type
1 parent 6c1590c commit be1ad07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/python.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
python-version: ${{ matrix.python_version }}
2323
- name: Install dependencies
2424
run: |
25-
python -m pip install --upgrade pip
25+
python3 -m pip install --upgrade pip
2626
python3 -m pip install -e '.[dev]'
2727
- name: Lint with ruff
2828
run: ruff check .
@@ -32,4 +32,4 @@ jobs:
3232
run: |
3333
python3 -m pytest -s -vv --cov --cov-fail-under=97
3434
- name: Run type checks
35-
run: mypy .
35+
run: python3 -m mypy .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dev = [
3434
"flit",
3535
"azure-identity",
3636
"python-dotenv",
37-
"mypy==1.10.0"
37+
"mypy"
3838
]
3939

4040
[build-system]

src/openai_messages_token_helper/message_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def build_messages(
126126
if tool_calls is not None and not isinstance(tool_calls, Iterable):
127127
raise ValueError("tool_calls must be a list of tool calls")
128128
message_builder.insert_message(
129-
shot["role"], shot.get("content"), tool_calls=tool_calls, tool_call_id=tool_call_id
129+
shot["role"], shot.get("content"), tool_calls=tool_calls, tool_call_id=tool_call_id # type: ignore[arg-type]
130130
)
131131

132132
append_index = len(few_shots)
@@ -149,6 +149,6 @@ def build_messages(
149149

150150
if message["role"] is None or message["content"] is None:
151151
raise ValueError("Few-shot messages must have both role and content")
152-
message_builder.insert_message(message["role"], message["content"], index=append_index)
152+
message_builder.insert_message(message["role"], message["content"], index=append_index) # type: ignore[arg-type]
153153
total_token_count += potential_message_count
154154
return message_builder.all_messages

0 commit comments

Comments
 (0)