Skip to content

Make click.Path generic on path_type - #3858

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:path-generic-type
Sep 8, 2026
Merged

Make click.Path generic on path_type#3858
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:path-generic-type

Conversation

@kdeldycke

Copy link
Copy Markdown
Collaborator

This is an attempt to make click.Path generic on path_type following #3407.

Closes #3822

@kdeldycke kdeldycke added the typing Type annotations and stubs label Sep 8, 2026
@kdeldycke kdeldycke added this to the 8.5.1 milestone Sep 8, 2026
@kdeldycke kdeldycke linked an issue Sep 8, 2026 that may be closed by this pull request
@edgarrmondragon

Copy link
Copy Markdown

Thanks @kdeldycke, this does narrow click.prompt() correctly for us!

@Rowlando13
Rowlando13 merged commit 86949d1 into pallets:stable Sep 8, 2026
12 checks passed
@kdeldycke
kdeldycke deleted the path-generic-type branch September 9, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typing Type annotations and stubs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

click.Path should be generic on path_type

3 participants