Skip to content

Fix parameter types for pkgutil functions accepting pathlike arguments - #13642

Merged
srittau merged 1 commit into
python:mainfrom
brianschubert:gh-13636-pkgutil-paths
Mar 17, 2025
Merged

Fix parameter types for pkgutil functions accepting pathlike arguments#13642
srittau merged 1 commit into
python:mainfrom
brianschubert:gh-13636-pkgutil-paths

Conversation

@brianschubert

Copy link
Copy Markdown
Collaborator

Fixes #13636

I confirmed that all paths are ultimately fed to os.fsdecode (or another any-pathlike accepting function in the case of ImpImporter and ImpLoader) since at least Python 3.8.

@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@srittau
srittau merged commit 205e993 into python:main Mar 17, 2025
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 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.

type of path parameter in pkgutil.iter_modules

2 participants