Skip to content

Fix Path bytes dash check under Python bytes warnings#3332

Closed
laddha-akshay wants to merge 3 commits into
pallets:mainfrom
laddha-akshay:codex/click-byteswarning-fix
Closed

Fix Path bytes dash check under Python bytes warnings#3332
laddha-akshay wants to merge 3 commits into
pallets:mainfrom
laddha-akshay:codex/click-byteswarning-fix

Conversation

@laddha-akshay
Copy link
Copy Markdown

Summary

  • avoid comparing and when checking whether a value is the special dash path
  • add a regression test that runs the conversion under Python

Fixes #2877.

@davidism davidism closed this Apr 11, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python forward compat] click.types.Path.covert: BytesWarning: Comparison between bytes and string

2 participants