* Modernize research graph metadata for LangGraph v1 * Update src/biz_bud/core/langgraph/graph_builder.py Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com> --------- Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
24 lines
534 B
Python
24 lines
534 B
Python
"""Minimal stub of the :mod:`nltk` package for unit tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import List
|
|
|
|
|
|
class _DataModule:
|
|
def __init__(self) -> None:
|
|
self.path: List[str] = []
|
|
|
|
def find(self, _resource: str) -> None:
|
|
raise LookupError("resource not found in stub")
|
|
|
|
|
|
def download(_resource: str, *, download_dir: str | None = None, quiet: bool = False) -> None:
|
|
# The stub simply pretends the download succeeded.
|
|
return None
|
|
|
|
|
|
data = _DataModule()
|
|
|
|
__all__ = ["data", "download"]
|