Skip to content

Commit 59b50d1

Browse files
authored
chore: fix integration test test_emit_and_capture_interval_events (#497)
1 parent e1175f6 commit 59b50d1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/integration/test_actor_events.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ async def test_emit_and_capture_interval_events(
1616
run_actor: RunActorFunction,
1717
) -> None:
1818
async def main() -> None:
19+
# TC003 - TYPE_CHECKING section is problematic for our integration tests.
1920
import os
21+
from collections.abc import Callable # noqa: TC003
2022
from datetime import datetime
21-
from typing import TYPE_CHECKING, Any
23+
from typing import Any
2224

2325
from apify_shared.consts import ActorEventTypes, ApifyEnvVars
2426
from crawlee.events._types import Event, EventSystemInfoData
2527

26-
if TYPE_CHECKING:
27-
from collections.abc import Callable
28-
2928
os.environ[ApifyEnvVars.PERSIST_STATE_INTERVAL_MILLIS] = '900'
3029

3130
was_system_info_emitted = False

0 commit comments

Comments
 (0)