Skip to content

Conversation

@edgarrmondragon
Copy link
Contributor

@edgarrmondragon edgarrmondragon commented Sep 22, 2025

Resolves #12038

Problem

Starting with Click 8.2, OptionParser is deprecated.

Solution

Make those click imports type-checking only.

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@cla-bot cla-bot bot added the cla:yes label Sep 22, 2025
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@edgarrmondragon edgarrmondragon force-pushed the 12038-click-optionparser-deprecationl branch from 6d3b2a1 to 539778b Compare September 22, 2025 21:17
@edgarrmondragon edgarrmondragon marked this pull request as ready for review September 22, 2025 22:57
@edgarrmondragon edgarrmondragon requested a review from a team as a code owner September 22, 2025 22:57
@github-actions github-actions bot added the community This PR is from a community member label Sep 22, 2025
MichelleArk
MichelleArk previously approved these changes Oct 23, 2025
@edgarrmondragon
Copy link
Contributor Author

FWIW 4693918 gets rid of the warning, but it does so by importing private members of click.parser, so I still think this PR is valuable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla:yes community This PR is from a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Click 8.2+ deprecation warning

2 participants