Skip to content

Document path_exists() as returning strings#2946

Open
cspotcode wants to merge 1 commit intocasey:masterfrom
cspotcode:patch-1
Open

Document path_exists() as returning strings#2946
cspotcode wants to merge 1 commit intocasey:masterfrom
cspotcode:patch-1

Conversation

@cspotcode
Copy link

@cspotcode cspotcode commented Nov 9, 2025

This follows the same convention as for the documentation of is_dependency().

This avoids confusion where a reader might assume that just supports boolean values and is returning true or false booleans which are compatible with if conditionals. The string false is considered truthy in if conditionals, which can be a surprising gotcha.

similar to docs for is_dependency()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant