Skip to content

3.0.0: exception: 'in <string>' requires string as left operand, not type #125

@hugovk

Description

@hugovk

With 3.0.0 I get this:

$ make doc
/Library/Developer/CommandLineTools/usr/bin/make -C docs html
sphinx-build -b html -W --keep-going -d _build/doctrees   . _build/html
Running Sphinx v4.3.2
making output directory... done

Extension error (sphinx.config):
Handler <function check_confval_types at 0x102e716c0> for event 'config-inited' threw an exception (exception: 'in <string>' requires string as left operand, not type)
make[1]: *** [html] Error 2
make: *** [doc] Error 2

2.0.0 is fine.

git bisect points to 2e019f8 from PR #120, ping @CarliJoy:

2e019f877028ee5d3dfc35165a11ac686dee2150 is the first bad commit
commit 2e019f877028ee5d3dfc35165a11ac686dee2150
Date:   Tue Jan 11 02:47:22 2022 +0100

    Allow customization (#120)

    * allow custom uris for everything

    * use sphinx config defaults instead of customs

    * add tests and documentation for customization features

    * fix typo

    * fix travis

    * fix travis old release

    * okay travis really only wants -dev

    officially they support Python 3.10 non dev but it seems they suck
    https://travis-ci.community/t/add-python-3-10/12220

    * add change log for setting

    * Copy edits; update changelog

    Co-authored-by: Steven Loria <sloria1@gmail.com>

 README.rst            |  87 ++++++++++---
 sphinx_issues.py      | 349 +++++++++++++++++++++++++++++++++++++-------------
 test_sphinx_issues.py | 137 +++++++++++++++++++-
 3 files changed, 463 insertions(+), 110 deletions(-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions