chore: resolve linting errors in test modules

This commit is contained in:
Ahmed Allam
2025-12-03 23:33:38 +04:00
committed by Ahmed Allam
parent 65c3383ecc
commit 6c5c0b0d1c
3 changed files with 36 additions and 16 deletions

View File

@@ -1,10 +1,13 @@
"""Pytest configuration and shared fixtures for Strix tests."""
from collections.abc import Callable
from typing import Any
import pytest
@pytest.fixture
def sample_function_with_types():
def sample_function_with_types() -> Callable[..., None]:
"""Create a sample function with type annotations for testing argument conversion."""
def func(
@@ -12,8 +15,8 @@ def sample_function_with_types():
count: int,
enabled: bool,
ratio: float,
items: list,
config: dict,
items: list[Any],
config: dict[str, Any],
optional: str | None = None,
) -> None:
pass
@@ -22,10 +25,10 @@ def sample_function_with_types():
@pytest.fixture
def sample_function_no_annotations():
def sample_function_no_annotations() -> Callable[..., None]:
"""Create a sample function without type annotations."""
def func(arg1, arg2, arg3):
def func(arg1: Any, arg2: Any, arg3: Any) -> None:
pass
return func