Skip to content

Align with supertype of click's HelpFormatter - #127

Merged
lagru merged 2 commits into
mainfrom
fix-click-formatter-supertype
Sep 1, 2026
Merged

Align with supertype of click's HelpFormatter#127
lagru merged 2 commits into
mainfrom
fix-click-formatter-supertype

Conversation

@lagru

@lagru lagru commented Sep 1, 2026

Copy link
Copy Markdown
Member

MyPy's stubtest reports the following

error: not checking stubs due to mypy build errors:
C:\hostedtoolcache\windows\Python\3.14.6\x64\Lib\site-packages\docstub-stubs\_cli_help.pyi:35: error: Argument 1 of "write_dl" is incompatible with supertype "click.formatting.HelpFormatter"; supertype defines the argument type as "Iterable[tuple[str, str]]"  [override]

I'm guessing because of a version bump of either click or MyPy. I don't think it's worth investigating exactly why unless this fix requires more investigation.

Release note

For maintainers and optionally contributors, please refer to changelist's README on how to document this PR for the release notes.

...

MyPy's stubtest reports the following

```
error: not checking stubs due to mypy build errors:
C:\hostedtoolcache\windows\Python\3.14.6\x64\Lib\site-packages\docstub-stubs\_cli_help.pyi:35: error: Argument 1 of "write_dl" is incompatible with supertype "click.formatting.HelpFormatter"; supertype defines the argument type as "Iterable[tuple[str, str]]"  [override]
```
@lagru lagru added the maintenance Keeps the lights on label Sep 1, 2026
@lagru lagru changed the title Fix click formatter supertype Align with supertype of click's HelpFormatter Sep 1, 2026
@lagru
lagru merged commit f6d0919 into main Sep 1, 2026
8 checks passed
@lagru
lagru deleted the fix-click-formatter-supertype branch September 1, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Keeps the lights on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant