type of path parameter in pkgutil.iter_modules #1946
Replies: 1 comment
-
This is a bug in typeshed. I've opened python/typeshed#13636. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure whether this is the right place to ask the following question. If not, I'd be happy to ask it and/or look elsewhere! I could not find an answer searching this forum or typeshed issues, however a related issue might be python/typeshed#6650.
The
path
parameter inpkgutil.iter_modules
is typed asIterable[str]
. Howeveriter_modules
also accepts apathlib.Path
, which seems consistent with the call toos.fsdecode
inget_importer
(acceptingPathLike
). Am I missing something in how this is typed or is this somehow inconsistent?Beta Was this translation helpful? Give feedback.
All reactions