Skip to content

Comments

Remove default=False for flag_value of str type#3392

Merged
snowman2 merged 1 commit intorasterio:mainfrom
QuLogic:fix-default-flag
Sep 26, 2025
Merged

Remove default=False for flag_value of str type#3392
snowman2 merged 1 commit intorasterio:mainfrom
QuLogic:fix-default-flag

Conversation

@QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Sep 7, 2025

According to click upstream [1], default=False was not supported with flag_value='some string'. Omitting the argument will keep it None, which should be about the same as False, mostly.

[1] pallets/click#3054 (comment)

@QuLogic
Copy link
Contributor Author

QuLogic commented Sep 7, 2025

I rebased on top of #3393 so that tests pass, but think this will only be necessary with click 8.3.

@snowman2 snowman2 added the bug label Sep 11, 2025
@snowman2 snowman2 added this to the 1.4.4 milestone Sep 11, 2025
According to click upstream [1], `default=False` was not supported with
`flag_value='some string'`. Omitting the argument will keep it `None`,
which should be about the same as `False`, mostly.

[1] pallets/click#3054 (comment)
@snowman2 snowman2 merged commit 556461c into rasterio:main Sep 26, 2025
26 checks passed
@snowman2
Copy link
Member

Thanks @QuLogic 👍

@QuLogic QuLogic deleted the fix-default-flag branch September 26, 2025 01:50
@snowman2 snowman2 added the backport-1.4 To be backported to maint-1.4 label Nov 6, 2025
snowman2 pushed a commit that referenced this pull request Nov 6, 2025
According to click upstream [1], `default=False` was not supported with
`flag_value='some string'`. Omitting the argument will keep it `None`,
which should be about the same as `False`, mostly.

[1] pallets/click#3054 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-1.4 To be backported to maint-1.4 bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants