Consumers run mypy --strict against the inline annotations; without the marker every imported symbol degrades to Any. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
16 lines
446 B
Python
16 lines
446 B
Python
"""Packaging contract: the library is a PEP 561 typed package.
|
|
|
|
Consumers run mypy --strict against the inline annotations; without the
|
|
py.typed marker mypy degrades every imported symbol to Any.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
import llm_ingestion_okf
|
|
|
|
|
|
def test_package_ships_py_typed_marker() -> None:
|
|
package_dir = Path(llm_ingestion_okf.__file__).parent
|
|
assert (package_dir / "py.typed").is_file()
|