Skip to content

Commit 00dd2e3

Browse files
authored
Merge pull request #1254 from tisnik/lcore-1395-added-type-hints
LCORE-1395: Added missing type hints
2 parents 4476220 + 96ed7b6 commit 00dd2e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/endpoints/test_rlsapi_v1_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ async def test_rlsapi_v1_infer_skip_rag(
507507
),
508508
ids=["question", "stdin", "attachment_contents", "terminal_output"],
509509
)
510-
def test_infer_size_limit(integration_http_client: TestClient, json) -> None:
510+
def test_infer_size_limit(integration_http_client: TestClient, json: dict) -> None:
511511
"""Test that a field exceeding limit is rejected."""
512512
response = integration_http_client.post("/v1/infer", json=json)
513513
detail = response.json()["detail"]

tests/unit/models/rlsapi/test_requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pylint: disable=no-member
22
"""Unit tests for rlsapi v1 request models."""
33

4-
from typing import Any, Optional
4+
from typing import Any, Optional, Callable
55

66
import pytest
77
from pydantic import BaseModel, ValidationError
@@ -611,7 +611,7 @@ def test_priority_order(self, make_request: Any) -> None:
611611
"infer-request-question",
612612
],
613613
)
614-
def test_value_max_length(model, field, max_length) -> None:
614+
def test_value_max_length(model: Callable, field: str, max_length: int) -> None:
615615
"""Test that fields with longer than allowed data are not allowed"""
616616
value = "a" * max_length
617617
bad_value = value + "a"

0 commit comments

Comments
 (0)