Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

MeGaGiGaGon
Copy link
Collaborator

Description

After talking for a bit on the click discord, I was pointed to the to_info_dict function.

Since the functionality of to_info_dict was preserved between 8.2.0 and 8.3.0, using it makes the code much cleaner while having the same effect.

Theoretically, the entirety of the function could re-use to_info_dict, but there are two problems: No is_eager detection, and it's currently untyped besides dict[str, Any], so I decided against it and just did the one improvement.

Checklist - did you ...

  • [N/A] Implement any code style changes under the --preview style, following the
    stability policy?
  • [N/A] Add an entry in CHANGES.md if necessary?
  • [N/A] Add / update tests if necessary?
  • [N/A] Add new / update outdated documentation?

After talking for a bit on the click discord, I was pointed to the `to_info_dict` function.

Since the functionality of `to_info_dict` was preserved between 8.2.0 and 8.3.0, using it makes the code much cleaner while having the same effect.

Theoretically, the entirety of the function could re-use `to_info_dict`, but there are two problems: No `is_eager` detection, and it's currently untyped besides `dict[str, Any]`, so I decided against it and just did the one improvement.
@MeGaGiGaGon MeGaGiGaGon added the skip news Pull requests that don't need a changelog entry. label Sep 19, 2025
@MeGaGiGaGon MeGaGiGaGon merged commit 4a8e6b7 into psf:main Sep 19, 2025
42 of 44 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the improve-generate_schema.py-click-8.3.0-code branch September 19, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Pull requests that don't need a changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants