diff --git a/tests/integration/test_actor_events.py b/tests/integration/test_actor_events.py index ace6bfb7..4f75630e 100644 --- a/tests/integration/test_actor_events.py +++ b/tests/integration/test_actor_events.py @@ -16,16 +16,15 @@ async def test_emit_and_capture_interval_events( run_actor: RunActorFunction, ) -> None: async def main() -> None: + # TC003 - TYPE_CHECKING section is problematic for our integration tests. import os + from collections.abc import Callable # noqa: TC003 from datetime import datetime - from typing import TYPE_CHECKING, Any + from typing import Any from apify_shared.consts import ActorEventTypes, ApifyEnvVars from crawlee.events._types import Event, EventSystemInfoData - if TYPE_CHECKING: - from collections.abc import Callable - os.environ[ApifyEnvVars.PERSIST_STATE_INTERVAL_MILLIS] = '900' was_system_info_emitted = False