feat(typing): ship the PEP 561 py.typed marker
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>
This commit is contained in:
parent
dae0bd1a28
commit
9ec25d27d0
2 changed files with 16 additions and 0 deletions
0
src/llm_ingestion_okf/py.typed
Normal file
0
src/llm_ingestion_okf/py.typed
Normal file
16
tests/test_packaging.py
Normal file
16
tests/test_packaging.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"""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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue