Skip to content

http.server.SimpleHTTPRequestHandler's directory param can be PathLike#13477

Merged
AlexWaygood merged 1 commit intopython:mainfrom
Avasam:`http.server.SimpleHTTPRequestHandler`'s-`directory`-param-can-be-`PathLike`
Feb 9, 2025
Merged

http.server.SimpleHTTPRequestHandler's directory param can be PathLike#13477
AlexWaygood merged 1 commit intopython:mainfrom
Avasam:`http.server.SimpleHTTPRequestHandler`'s-`directory`-param-can-be-`PathLike`

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Feb 8, 2025

directory is passed to os.fspath wich does accept os.PathLike[str] and will always return a str
Noticed in jaraco/jaraco.context#16

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 24c78b9 into python:main Feb 9, 2025
55 checks passed
@Avasam Avasam deleted the `http.server.SimpleHTTPRequestHandler`'s-`directory`-param-can-be-`PathLike` branch February 9, 2025 21:43
Mr-Sunglasses added a commit to Mr-Sunglasses/typeshed that referenced this pull request Mar 6, 2025
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

Comments