Files
AstrBot/types/readability.pyi
LIghtJUNction 7ff6df9853 chore: add type stubs and update pyproject.toml configuration
- Add type stubs for external packages (faiss, psutil, readability, etc.)
- Move typings to types/ directory
- Update pyproject.toml with mypy plugin configuration
- Add project URLs (Homepage, Repository)
- Update python version to 3.12 in pyright config
2026-03-31 20:14:35 +08:00

23 lines
689 B
Python

from typing import Any
class Document:
def __init__(
self,
input: str | Any,
positive_keywords: str | list[str] | None = None,
negative_keywords: str | list[str] | None = None,
url: str | None = None,
min_text_length: int = 25,
retry_length: int = 250,
xpath: bool = False,
handle_failures: str = "discard",
) -> None: ...
def content(self) -> str: ...
def title(self) -> str: ...
def author(self) -> str: ...
def short_title(self) -> str: ...
def summary(
self, html_partial: bool = False, keep_all_images: bool = False
) -> str: ...
def get_clean_html(self) -> str: ...