Commit Graph

1 Commits

Author SHA1 Message Date
HAL9000 5812e0599a [AUTO-INF-3B] features/environment.py uses # type: ignore comments in _install_fast_sleep_patch() violating CONTRIBUTING.md strict typing policy
Removed 6 `# type: ignore` suppressions from `_install_fast_sleep_patch()` in `features/environment.py`.
Used `cast(Any, module)` + direct attribute assignment instead of `setattr()` (which ruff B010 disallows) and `# type: ignore` comments.
Added `from collections.abc import Callable` and `from typing import cast` imports.
Added new feature file `features/test_infra_sleep_patch.feature` with 4 scenarios verifying the behavior.
Added new steps file `features/steps/test_infra_sleep_patch_steps.py`.

ISSUES CLOSED: #9993
2026-04-24 04:11:54 +00:00