Skip to content

[rejected AI] Deprecate public names for internal type helpers - #3852

Closed
ryux1 wants to merge 1 commit into
pallets:mainfrom
ryux1:ryux1/private-type-utilities
Closed

ryux1 wants to merge 1 commit into
pallets:mainfrom
ryux1:ryux1/private-type-utilities

Conversation

@ryux1

@ryux1 ryux1 commented Sep 6, 2026

Copy link
Copy Markdown

Rename the internal implementations to _FuncParamType and _convert_type, while keeping the old module attributes available through __getattr__ with a deprecation warning until Click 9.0. Internal call sites and tests now use the private names.

The existing to_info_dict() output remains compatible (param_type is still Func).

Validation:

  • uv run pytest (2062 passed, 24 skipped, 1 xfailed)
  • uv run tox run -e style,typing

Developed with assistance from OpenAI Codex.

Fixes #3847

@davidism

davidism commented Sep 6, 2026

Copy link
Copy Markdown
Member

@davidism davidism closed this Sep 6, 2026
@davidism davidism added the rejected AI Contribution rejected because of its untrustworthy AI origin label Sep 6, 2026
@davidism davidism changed the title Deprecate public names for internal type helpers [rejected AI] Deprecate public names for internal type helpers Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rejected AI Contribution rejected because of its untrustworthy AI origin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More private utilities that need to be marked and public api deprecated

2 participants