1414if TYPE_CHECKING :
1515 from re import Pattern
1616
17+ from griffe import DocstringOptions , LoadableExtensionType
18+
1719_logger = logging .getLogger (__name__ )
1820
1921CONFIG_FILE_PATHS = (
@@ -59,7 +61,7 @@ class ConfigDict(TypedDict):
5961 annotations_path : Literal ["brief" , "source" , "full" ]
6062 """The verbosity for annotations path: `brief` (recommended), `source` (as written in the source), or `full`."""
6163
62- docstring_options : dict
64+ docstring_options : DocstringOptions
6365 """mkdocstring [configuration](https://mkdocstrings.github.io/python/usage/configuration/general/)"""
6466
6567 docstring_section_style : Literal ["list" , "table" ]
@@ -68,6 +70,9 @@ class ConfigDict(TypedDict):
6870 docstring_style : Literal ["google" , "numpy" , "sphinx" , "auto" ] | None
6971 """The style in which docstrings are written: `auto`, `google`, `numpy`, `sphinx`, or `None`."""
7072
73+ extensions : list [LoadableExtensionType ]
74+ """A list of Griffe extensions to load."""
75+
7176 filters : list [str ] | list [tuple [Pattern [str ], bool ]]
7277 """A list of filters.
7378
@@ -76,6 +81,9 @@ class ConfigDict(TypedDict):
7681 to lower members in the hierarchy).
7782 """
7883
84+ force_inspection : bool
85+ """Force using introspection on modules even if sources are available."""
86+
7987 group_by_category : bool
8088 """Group the object's children by categories: attributes, classes, functions, and modules."""
8189
@@ -125,6 +133,9 @@ class ConfigDict(TypedDict):
125133 The modules must be listed as an array of strings.
126134 """
127135
136+ search_paths : list [str ]
137+ """A list of paths to search packages into."""
138+
128139 separate_signature : bool
129140 """Whether to put the whole signature in a code block below the heading.
130141
@@ -248,9 +259,12 @@ class ConfigDict(TypedDict):
248259 "preload_modules" : None ,
249260 "load_external_modules" : False ,
250261 "allow_inspection" : True ,
262+ "force_inspection" : False ,
251263 "summary" : True ,
252264 "show_docstring_classes" : True ,
253265 "show_docstring_functions" : True ,
254266 "show_docstring_modules" : True ,
267+ "extensions" : [],
268+ "search_paths" : [],
255269}
256270"""Default configuration values."""
0 commit comments