Skip to content

Remove unused Click code#1601

Merged
svlandeg merged 22 commits intofastapi:drop-clickfrom
svlandeg:update/vendored_click
Mar 24, 2026
Merged

Remove unused Click code#1601
svlandeg merged 22 commits intofastapi:drop-clickfrom
svlandeg:update/vendored_click

Conversation

@svlandeg
Copy link
Member

@svlandeg svlandeg commented Feb 23, 2026

Continue work from #1525, vendoring Click.

This PR removes Click code that Typer doesn't use and isn't currently documented/tested.
No Typer code is changed and no additional tests added (yet).

Removed Click's functionality:

  • CommandCollection
  • to_info_dict() funtions
  • open_file(), KeepOpenFile
  • UnprocessedParamType
  • pager, _pipepager, _tempfilepager, _nullpager, echo_via_pager
  • Editor, edit()
  • pause(), unstyle() and clear()
  • _check_nested_chain
  • _MultiCommand, _BaseCommand, _FakeSubclassCheck

All original Typer tests from the test suite continue to succeed after these edits.

Coverage stats

On current master:

9975 statements, 0 missing (100% coverage)

This branch, before this PR:

14118 statements, 1427 missing (89.9% coverage)

This branch, after this PR:

13755 statements, 1155 missing (91.6% coverage)

@svlandeg svlandeg self-assigned this Feb 23, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

📝 Docs preview

Last commit 7d572f2 at: https://44bba31e.typertiangolo.pages.dev

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Feb 23, 2026
@github-actions

This comment was marked as resolved.

@svlandeg svlandeg changed the base branch from drop-click to master February 23, 2026 15:22
@svlandeg svlandeg changed the base branch from master to drop-click February 23, 2026 15:22
@github-actions github-actions bot removed the conflicts Automatically generated when a PR has a merge conflict label Feb 23, 2026
@svlandeg svlandeg marked this pull request as ready for review February 23, 2026 19:49
@svlandeg svlandeg removed their assignment Feb 23, 2026
@svlandeg svlandeg changed the title WIP: continue work on vendoring Click Remove unused Click code Feb 23, 2026
Copy link
Member Author

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed this one internally with Sebastián and he said it's good to merge, it's into a feature branch anyway so I'll merge and continue with this WIP in the next PR. 🎉

@svlandeg svlandeg merged commit b5a53ef into fastapi:drop-click Mar 24, 2026
19 of 22 checks passed
@svlandeg svlandeg deleted the update/vendored_click branch March 24, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants