@@ -52,7 +52,16 @@ def load_config() -> ConfigDict | None:
5252 return cast ("ConfigDict" , config )
5353
5454
55- class ConfigDict (TypedDict ):
55+ class _OptionalConfigDict (TypedDict , total = False ):
56+ mdformat_extensions : list [str ]
57+ """A list of mdformat extensions to enable when formatting Markdown output.
58+
59+ For example, `["tables"]` to enable the `mdformat-tables` extension,
60+ which properly handles escaped pipes in table cells.
61+ """
62+
63+
64+ class ConfigDict (_OptionalConfigDict ):
5665 """Configuration for griffe2md, griffe and mkdocstrings."""
5766
5867 allow_inspection : bool
@@ -103,13 +112,6 @@ class ConfigDict(TypedDict):
103112 load_external_modules : bool
104113 """Whether to always load external modules/packages."""
105114
106- mdformat_extensions : list [str ]
107- """A list of mdformat extensions to enable when formatting Markdown output.
108-
109- For example, `["tables"]` to enable the `mdformat-tables` extension,
110- which properly handles escaped pipes in table cells.
111- """
112-
113115 members : list [str ] | bool | None
114116 """A boolean, or an explicit list of members to render.
115117
@@ -272,7 +274,6 @@ class ConfigDict(TypedDict):
272274 "show_docstring_functions" : True ,
273275 "show_docstring_modules" : True ,
274276 "extensions" : [],
275- "mdformat_extensions" : [],
276277 "search_paths" : [],
277278}
278279"""Default configuration values."""
0 commit comments