mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
small fixes
This commit is contained in:
@@ -25,7 +25,7 @@ __package__ = 'archivebox.misc'
|
||||
import sys
|
||||
import json
|
||||
import select
|
||||
from typing import Iterator, Dict, Any, Optional, TextIO
|
||||
from typing import Iterable, Iterator, Dict, Any, Optional, TextIO
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ def read_file(path: Path) -> Iterator[Dict[str, Any]]:
|
||||
yield record
|
||||
|
||||
|
||||
def read_args_or_stdin(args: tuple, stream: Optional[TextIO] = None) -> Iterator[Dict[str, Any]]:
|
||||
def read_args_or_stdin(args: Iterable[str], stream: Optional[TextIO] = None) -> Iterator[Dict[str, Any]]:
|
||||
"""
|
||||
Read from CLI arguments if provided, otherwise from stdin.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user