Skip to content

Clarifying path_url property docstring#7142

Closed
Nene1506 wants to merge 1 commit intopsf:mainfrom
Nene1506:improve-url-property-docstring
Closed

Clarifying path_url property docstring#7142
Nene1506 wants to merge 1 commit intopsf:mainfrom
Nene1506:improve-url-property-docstring

Conversation

@Nene1506
Copy link
Copy Markdown

@Nene1506 Nene1506 commented Jan 4, 2026

Improves the docstring for path_url to clearly explain that it returns the URL path by extracting the path and query from a full URL, excluding the scheme and domain. Defaults to "/" if no path exists.

@nateprewitt
Copy link
Copy Markdown
Member

Thanks for the PR, @Nene1506. I don't know if we're going to take this though. The new comment is describing what the code does rather than its intent.

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.

2 participants