@@ -142,7 +142,7 @@ def load_inventory(
142142 ) -> Iterator [Tuple [str , str ]]:
143143 """Yield items and their URLs from an inventory file streamed from `in_file`.
144144
145- This implements mkdocstrings' `load_inventory` "protocol" (see plugin.py ).
145+ This implements mkdocstrings' `load_inventory` "protocol" (see [`mkdocstrings. plugin`][mkdocstrings.plugin] ).
146146
147147 Arguments:
148148 in_file: The binary file-like object to read the inventory from.
@@ -159,19 +159,7 @@ def load_inventory(
159159 for item in Inventory .parse_sphinx (in_file , domain_filter = ("py" ,)).values (): # noqa: WPS526
160160 yield item .name , posixpath .join (base_url , item .uri )
161161
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
175163 module_name = identifier .split ("." , 1 )[0 ]
176164 unknown_module = module_name not in self ._modules_collection
177165 if config .get ("fallback" , False ) and unknown_module :
0 commit comments