fix(docs): remove typehints_formatter
.
#1012
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Description
By removing the
typehints_formatter
we are able to resolve issues #570 and #734. The former issue is resolved by removing the non-picklable function, which enables build caching, and the second is solved by removing theTypeVar
bound replacement.While the
TypeVar
replacement does provide more concise documentation, it removes a key piece of information, which the reader must be aware of. For example, in:the
typevar
function is the actual specification,bound
is the documented specification,valid
is a valid specification, andinvalid
is an invalid specification which is presented as valid in the documentation (if we replace theTypeVar
with the bound).As an additional comment, we do now lose the functionality of the
autodoc_custom_types
-- it should be noted that theArrayLike
custom type (the only listed custom type) doesn't appear to be used anywhere in the codebase.Refs: #570, #734
How Has This Been Tested?
Documentation builds without any warnings.
Does this PR introduce a breaking change?
N/A
Checklist before requesting a review