@@ -142,7 +142,7 @@ def load_inventory(
142
142
) -> Iterator [Tuple [str , str ]]:
143
143
"""Yield items and their URLs from an inventory file streamed from `in_file`.
144
144
145
- This implements mkdocstrings' `load_inventory` "protocol" (see plugin.py ).
145
+ This implements mkdocstrings' `load_inventory` "protocol" (see [`mkdocstrings. plugin`][mkdocstrings.plugin] ).
146
146
147
147
Arguments:
148
148
in_file: The binary file-like object to read the inventory from.
@@ -159,19 +159,7 @@ def load_inventory(
159
159
for item in Inventory .parse_sphinx (in_file , domain_filter = ("py" ,)).values (): # noqa: WPS526
160
160
yield item .name , posixpath .join (base_url , item .uri )
161
161
162
- def collect (self , identifier : str , config : dict ) -> CollectorItem : # noqa: WPS231
163
- """Collect the documentation tree given an identifier and selection options.
164
-
165
- Arguments:
166
- identifier: The dotted-path of a Python object available in the Python path.
167
- config: Selection options, used to alter the data collection done by `pytkdocs`.
168
-
169
- Raises:
170
- CollectionError: When there was a problem collecting the object documentation.
171
-
172
- Returns:
173
- The collected object-tree.
174
- """
162
+ def collect (self , identifier : str , config : dict ) -> CollectorItem : # noqa: D102,WPS231
175
163
module_name = identifier .split ("." , 1 )[0 ]
176
164
unknown_module = module_name not in self ._modules_collection
177
165
if config .get ("fallback" , False ) and unknown_module :
0 commit comments