-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compileall: update for py39 #3956
Conversation
stdlib/3/compileall.pyi
Outdated
@@ -34,11 +40,29 @@ if sys.version_info >= (3, 7): | |||
legacy: bool = ..., | |||
optimize: int = ..., | |||
invalidation_mode: Optional[PycInvalidationMode] = ..., | |||
*, | |||
stripdir: Optional[_Path] = ..., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must actually be a string because it does stripdir.split(os.path.sep)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch, contradicts the documentation. I filed https://bugs.python.org/issue40447
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the bug probably won't be fixed very soon, can you just change the stub for now?
*, | ||
stripdir: Optional[_Path] = ..., | ||
prependdir: Optional[_Path] = ..., | ||
limit_sl_dest: Optional[_Path] = ..., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But these two really can be PathLike
Updated the stub to reflect today's Python 3.9. Looking closer at this I think there are some issues here with
|
* compileall: add stripdir, prependdir and limit_sl_dest * compileall: compile_dir's default value is now None * compileall: update for current py39 (as of beta1) Co-authored-by: hauntsaninja <>
No description provided.