sphinx
sphinx copied to clipboard
HTML search: adjust type signatures for custom HTML scoring
Feature or Bugfix
- Refactoring
Purpose
- Adjust the type hint for the
scoringargument to theIndexBuilder
Detail
- Currently we have test coverage that provides a
scoringvalue ofNone-- but the type signature we have on the class doesn't accept that, strictly speaking. - Adjust the type signature to accept that single additional value (since we already have test coverage for it).
- Also: add a
strtype to the relevant HTML builder config value.
Relates
- Originates from discussion in #12816.
cc @danieleades