Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tox-dev/sphinx-autodoc-typehints
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.6.2
Choose a base ref
...
head repository: tox-dev/sphinx-autodoc-typehints
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.6.3
Choose a head ref
  • 10 commits
  • 7 files changed
  • 5 contributors

Commits on Jan 12, 2026

  1. [pre-commit.ci] pre-commit autoupdate (#597)

    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Bernát Gábor <[email protected]>
    pre-commit-ci[bot] and gaborbernat authored Jan 12, 2026
    Configuration menu
    Copy the full SHA
    8a4154b View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2026

  1. [pre-commit.ci] pre-commit autoupdate (#598)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.14.11 → v0.14.13](astral-sh/ruff-pre-commit@v0.14.11...v0.14.13)
    - [github.com/rbubley/mirrors-prettier: v3.7.4 → v3.8.0](rbubley/mirrors-prettier@v3.7.4...v3.8.0)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Jan 20, 2026
    Configuration menu
    Copy the full SHA
    2ba80c4 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2026

  1. [pre-commit.ci] pre-commit autoupdate (#600)

    updates:
    - [github.com/python-jsonschema/check-jsonschema: 0.36.0 → 0.36.1](python-jsonschema/check-jsonschema@0.36.0...0.36.1)
    - [github.com/astral-sh/ruff-pre-commit: v0.14.13 → v0.14.14](astral-sh/ruff-pre-commit@v0.14.13...v0.14.14)
    - [github.com/rbubley/mirrors-prettier: v3.8.0 → v3.8.1](rbubley/mirrors-prettier@v3.8.0...v3.8.1)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    8a1647c View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2026

  1. [pre-commit.ci] pre-commit autoupdate (#602)

    updates:
    - [github.com/tox-dev/pyproject-fmt: v2.11.1 → v2.12.1](tox-dev/pyproject-fmt@v2.11.1...v2.12.1)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    29248e5 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2026

  1. [pre-commit.ci] pre-commit autoupdate (#603)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.14.2](tox-dev/pyproject-fmt@v2.12.1...v2.14.2)
    - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](astral-sh/ruff-pre-commit@v0.14.14...v0.15.0)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 12, 2026
    Configuration menu
    Copy the full SHA
    da0b96d View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2026

  1. 🔧 build(tox): migrate from tox.ini to tox.toml (#609)

    CI was broken because tox.ini referenced removed extras (numpy,
    type-comment). Rather than just fixing the stale extras, migrated
    the entire config to native TOML format using the replace directive
    for posargs defaults. Also dropped the stale 3.11 env since the
    project requires >=3.12, and switched pre-commit from tox-ini-fmt
    to tox-toml-fmt.
    
    Signed-off-by: Bernát Gábor <[email protected]>
    gaborbernat authored Feb 17, 2026
    Configuration menu
    Copy the full SHA
    28dae32 View commit details
    Browse the repository at this point in the history
  2. Fix extra () after NewType in rendered output (#608)

    Change the Sphinx role for NewType from :py:class: to :py:obj: to
    prevent Sphinx from appending () after the type name in HTML output.
    The :py:class: role adds parentheses to indicate callability, which
    produces "NewType()(name, type)" instead of "NewType(name, type)".
    
    Fixes #216
    
    Co-authored-by: Bernát Gábor <[email protected]>
    worksbyfriday and gaborbernat authored Feb 17, 2026
    Configuration menu
    Copy the full SHA
    dc92a64 View commit details
    Browse the repository at this point in the history
  3. Fix ValueError on wrapper loops in inspect.unwrap (#607)

    * Fix ValueError on wrapper loops in inspect.unwrap
    
    Catch ValueError from inspect.unwrap() in both process_signature and
    process_docstring. This fixes crashes when documenting objects with
    circular __wrapped__ chains, such as SQLAlchemy's mapped_column.
    
    Fixes #405
    
    * Fix mypy type errors in wrapper loop test
    
    Pass empty dict and strings for unused parameters, adding
    type: ignore annotation since the test only exercises the
    inspect.unwrap ValueError guard path.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Trigger CI after pre-commit-ci auto-fix
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Move type: ignore to the correct argument line
    
    The dict literal needs the arg-type ignore (Options expected),
    but the str arguments are already compatible with str params.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Fix pre-commit ruff check (PLR0912 too-many-branches)
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Pass valid Options() instead of dict with type: ignore
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Feb 17, 2026
    Configuration menu
    Copy the full SHA
    291a131 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2026

  1. Fix IndexError with always_document_param_types and braces-after defa…

    …ults (#605)
    
    * Fix IndexError with always_document_param_types and braces-after defaults
    
    When always_document_param_types is True and a parameter is not documented
    in the docstring, _inject_arg_signature appends a new :param: line and sets
    insert_index to len(lines). This is one past the last valid index, causing
    an IndexError in _append_default when typehints_defaults is 'braces-after'.
    
    Fix by setting insert_index to len(lines) - 1 (the index of the
    just-appended line).
    
    Fixes #575
    
    * Fix pre-commit ruff check (ARG001 unused fixture parameter)
    
    The `warning` parameter is a pytest fixture and cannot be renamed.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Address review: rename loop var, extract docstring into variable
    
    - Rename single-letter 'f' to 'rst_file'
    - Extract multiline RST content into variable before write_text
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Move dedent into write_text call per review
    
    * Extract RST content into variable per review
    
    Store the RST string in index_content, pass it via
    write_text(dedent(index_content)) as requested.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    worksbyfriday and claude authored Feb 18, 2026
    Configuration menu
    Copy the full SHA
    11e97e2 View commit details
    Browse the repository at this point in the history
  2. Fix warning for __new__ of NamedTuple subclasses (#606)

    * Fix warning for __new__ of NamedTuple subclasses
    
    When documenting __new__ of a NamedTuple subclass, inspect.getmodule()
    returns None because __new__.__module__ is set to the synthetic
    'namedtuple_<Name>' module. The subsequent getattr(None, class_name)
    raised AttributeError, which Sphinx caught and reported as a warning.
    
    Guard against None from both inspect.getmodule() and getattr() in the
    qualname resolution loop.
    
    Fixes #601
    
    * Address review: walrus operator, extract docstrings, rename loop var
    
    - Use walrus operator for getattr None check
    - Extract multiline RST content into variables before write_text
    - Rename single-letter loop var 'f' to 'rst_file'
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Move dedent into write_text call per review
    
    * Fix pre-commit (PLR0911) and extract RST into variable
    
    Add PLR0911 to noqa for process_signature (7 return statements).
    Extract RST content into index_content variable per review pattern.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    worksbyfriday and claude authored Feb 18, 2026
    Configuration menu
    Copy the full SHA
    c6f6768 View commit details
    Browse the repository at this point in the history
Loading