Skip to content

Conversation

FirelightFlagboy
Copy link
Contributor

The typing of param_hint between BadParameter, MissingParameter and _join_param_hints was different. The firsts only allowed for a str where the later also accept a sequence of str.

Fixes #2777

@FirelightFlagboy
Copy link
Contributor Author

FirelightFlagboy commented Jul 3, 2025

There's not Unreleased section in CHANGE.rst it's expected? should I add my own section?

@Rowlando13
Copy link
Collaborator

@kdeldycke would you mind checking this?

@Rowlando13 Rowlando13 changed the base branch from main to stable July 4, 2025 02:41
@Rowlando13 Rowlando13 changed the base branch from stable to main July 4, 2025 02:42
@Rowlando13
Copy link
Collaborator

@FirelightFlagboy Please rebase onto stable since this will go out in the next bug fix release.

@FirelightFlagboy FirelightFlagboy changed the base branch from main to stable July 4, 2025 05:57
@FirelightFlagboy
Copy link
Contributor Author

@Rowlando13 done, I've rebased to stable and change the base branch to it.

The typing of `param_hint` between `BadParameter`, `MissingParameter` and `_join_param_hints` was different.
The firsts only allowed for a `str` where the later also accept a sequence of `str`.

Fixes pallets#2777
@davidism davidism changed the title fix(typing): Using correct typing for param_hint Using correct typing for param_hint Jul 4, 2025
@Rowlando13 Rowlando13 deleted the branch pallets:stable July 16, 2025 06:23
@Rowlando13 Rowlando13 closed this Jul 16, 2025
@Rowlando13 Rowlando13 reopened this Jul 16, 2025
@kdeldycke
Copy link
Collaborator

@kdeldycke would you mind checking this?

I don't see any issue here! :) Good to be merged back to 8.2.2.

@kdeldycke kdeldycke added this to the 8.2.2 milestone Jul 21, 2025
@Rowlando13 Rowlando13 merged commit 7b72bfb into pallets:stable Jul 22, 2025
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect type hint for param_hint in BadParameter exception
3 participants