We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1175f6 commit 59b50d1Copy full SHA for 59b50d1
tests/integration/test_actor_events.py
@@ -16,16 +16,15 @@ async def test_emit_and_capture_interval_events(
16
run_actor: RunActorFunction,
17
) -> None:
18
async def main() -> None:
19
+ # TC003 - TYPE_CHECKING section is problematic for our integration tests.
20
import os
21
+ from collections.abc import Callable # noqa: TC003
22
from datetime import datetime
- from typing import TYPE_CHECKING, Any
23
+ from typing import Any
24
25
from apify_shared.consts import ActorEventTypes, ApifyEnvVars
26
from crawlee.events._types import Event, EventSystemInfoData
27
- if TYPE_CHECKING:
- from collections.abc import Callable
28
-
29
os.environ[ApifyEnvVars.PERSIST_STATE_INTERVAL_MILLIS] = '900'
30
31
was_system_info_emitted = False
0 commit comments