Squash-merge lib-standardisation: adopt repo standards across packaging, tooling, docs, and CI. - standardize pyproject.toml (canonical packaging, lint config, extras, GSDFC pydoclint) - add py.typed marker, modernize type hints and Google-style docstrings - nest generated docs under docs/lib and docs/mcp; add hand-written wiki - adopt standard Type A PyPI CI pipeline (tag==version guard + quality gate) - promote generated CHANGELOG.md; bump version to 0.0.7
20 lines
496 B
Python
20 lines
496 B
Python
from collections.abc import Iterable
|
|
|
|
from docforge.models.object import DocObject
|
|
|
|
class Module:
|
|
"""Represents a documented Python module."""
|
|
|
|
path: str
|
|
docstring: str | None
|
|
members: dict[str, DocObject]
|
|
|
|
def __init__(
|
|
self,
|
|
path: str,
|
|
docstring: str | None = ...,
|
|
) -> None: ...
|
|
def add_object(self, obj: DocObject) -> None: ...
|
|
def get_object(self, name: str) -> DocObject: ...
|
|
def get_all_objects(self) -> Iterable[DocObject]: ...
|