deluge/docs
Calum Lind 62a4052178
[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: https://github.com/tox-dev/sphinx-autodoc-typehints/issues/220
2022-02-15 11:49:54 +00:00
..
man [Lint] Fix spelling mistakes 2021-09-21 21:43:53 +01:00
source [Docs] Remove custom mock to fix autodoc typing errors 2022-02-15 11:49:54 +00:00
requirements.txt [Core] Document all exported core methods with type hints 2022-02-11 08:48:58 +00:00
spelling_wordlist.txt [Docs] Fixes for spelling 2019-06-18 09:07:48 +01:00