Skip to content

Commit e678069

Browse files
build(deps-dev): bump mypy from 1.15.0 to 1.16.0 (#1369)
* build(deps-dev): bump mypy from 1.15.0 to 1.16.0 Bumps [mypy](https://github.com/python/mypy) from 1.15.0 to 1.16.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.15.0...v1.16.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 1.16.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: update type ignores for new mypy release --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Johannes Wesch <johannes.wesch@aleph-alpha.com>
1 parent 325711c commit e678069

5 files changed

Lines changed: 53 additions & 40 deletions

File tree

poetry.lock

Lines changed: 47 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ python-liquid = "^1.13.0"
3939

4040
[tool.poetry.group.dev.dependencies]
4141
# lint & format
42-
mypy = "^1.15.0"
42+
mypy = "^1.16.0"
4343
nbqa = "^1.9.1"
4444
ruff = "^0.11.11"
4545
pre-commit = "^4.2.0"

src/intelligence_layer/connectors/document_index/document_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ async def search(
14621462
) as response:
14631463
await self._raise_for_status(response)
14641464
data = await response.json()
1465-
return [DocumentSearchResult._from_search_response(r) for r in data] # type: ignore
1465+
return [DocumentSearchResult._from_search_response(r) for r in data]
14661466

14671467
async def chunks(
14681468
self, document_path: DocumentPath, index_name: str

src/intelligence_layer/evaluation/run/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def run(
177177
start = utc_now()
178178

179179
with ThreadPoolExecutor(max_workers=max_workers) as executor:
180-
futures = [executor.submit(run, example) for example in examples]
180+
futures = [executor.submit(run, example) for example in examples] # type: ignore
181181
with tqdm(total=len(futures)) as pbar:
182182
pbar.set_description("Running Task")
183183
for future in as_completed(futures):

tests/core/test_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ def test_models_warn_about_non_recommended_models(
287287
client: AlephAlphaClientProtocol,
288288
) -> None:
289289
with pytest.warns(UserWarning):
290-
assert Llama3InstructModel(client=client, name="luminous-base") # type: ignore
290+
assert Llama3InstructModel(client=client, name="luminous-base")
291291

292292
with pytest.warns(UserWarning):
293-
assert AlephAlphaModel(client=client, name="No model") # type: ignore
293+
assert AlephAlphaModel(client=client, name="No model")
294294

295295
with pytest.warns(UserWarning):
296-
assert Pharia1ChatModel(client=client, name="No model") # type: ignore
296+
assert Pharia1ChatModel(client=client, name="No model")
297297

298298

299299
class DummyModelClient(AlephAlphaClientProtocol):

0 commit comments

Comments
 (0)