introspection
This commit is contained in:
22
docforge/loader/griffe_loader.pyi
Normal file
22
docforge/loader/griffe_loader.pyi
Normal file
@@ -0,0 +1,22 @@
|
||||
from typing import List, Optional
|
||||
|
||||
from docforge.model import Module, Project
|
||||
|
||||
|
||||
class GriffeLoader:
|
||||
"""Griffe-based introspection loader.
|
||||
|
||||
This is the only supported introspection backend in doc-forge.
|
||||
"""
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def load_project(
|
||||
self,
|
||||
module_paths: List[str],
|
||||
project_name: Optional[str] = ...,
|
||||
) -> Project:
|
||||
"""Load a documentation project from Python modules."""
|
||||
|
||||
def load_module(self, path: str) -> Module:
|
||||
"""Load a single Python module by import path."""
|
||||
Reference in New Issue
Block a user