Skip to content

Conversation

minrk
Copy link
Member

@minrk minrk commented May 26, 2025

Both path inputs to is_hidden() must be absolute, as is documented. But this wasn't checked, which could lead to incorrect results for invalid inputs. These cases are now ValueErrors instead of undefined behavior.

closes #423

@minrk minrk added the bug label May 26, 2025
@minrk minrk closed this Oct 8, 2025
@minrk minrk reopened this Oct 8, 2025
minrk added 5 commits October 13, 2025 13:42
inputs must be absolute. Raise ValueError instead of possibly incorrect result when input is invalid
Windows is more complex since it combines root and drive to be absolute

cast to list because parents[-1] is new in 3.10
@Carreau
Copy link
Member

Carreau commented Oct 13, 2025

(rebased)

@Carreau
Copy link
Member

Carreau commented Oct 13, 2025

Failure unrelated, merging.

@Carreau Carreau merged commit 82a2038 into jupyter:main Oct 13, 2025
33 of 34 checks passed
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.

paths.is_hidden() Reports invalid input as hidden

2 participants