fix: Replace builtin 'callable' with 'Callable' type hint

- Fix streaming_ingest.py line 180: callable -> Callable
- Fix streaming_adaptor.py line 39: callable -> Callable
- Add Callable import from collections.abc and typing
- Fixes TypeError in Python 3.11: unsupported operand type(s) for |
- Resolves CI coverage report collection errors
This commit is contained in:
yusyus
2026-02-08 14:47:26 +03:00
parent 8832542667
commit 32cb41e020
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ Enables memory-efficient processing of large documentation sets.
import json
from pathlib import Path
from typing import Any
from typing import Any, Callable
import sys
# Add parent directory to path for imports
@@ -36,7 +36,7 @@ class StreamingAdaptorMixin:
chunk_size: int = 4000,
chunk_overlap: int = 200,
batch_size: int = 100,
progress_callback: callable | None = None,
progress_callback: Callable | None = None,
) -> Path:
"""
Package skill using streaming ingestion.