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
14 lines
343 B
Python
14 lines
343 B
Python
from docforge import GriffeLoader
|
|
|
|
|
|
def test_alias_does_not_crash(temp_package):
|
|
(temp_package / "alias.py").write_text("""from typing import List
|
|
Alias = List[int]
|
|
""")
|
|
|
|
loader = GriffeLoader()
|
|
project = loader.load_project(["testpkg.alias"])
|
|
|
|
module = project.get_module("testpkg.alias")
|
|
assert "Alias" in module.members
|