Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Remove custom mock to fix autodoc typing errors
If a libtorrent return type was specified e.g. def get_lt_status(self) -> 'lt.torrent_status' Even as a string autodoc_typehints module would raise and error: Handler <function process_docstring at 0x7f6c16c8ec10> for event 'autodoc-process-docstring' threw an exception (exception: getattr(): attribute name must be string) This was a result of using a custom mock in Sphinx autodoc config and this Mock object name or qualname returns an object instead of str. Testing with putting modules in autodoc_mock_imports again showed no issues so removing custom mock Ref: tox-dev/sphinx-autodoc-typehints#220
- Loading branch information