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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user