-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
gh-109413: Enable strict_optional
for libregrtest/main.py
#126394
Conversation
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.
Nice!
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.
Thanks!
Lib/test/libregrtest/main.py
Outdated
|
||
@property | ||
def tmp_dir(self) -> StrPath: | ||
assert self._tmp_dir is not None, ( |
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.
Please replace asssert with if+raise.
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.
LGTM
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @sobolevn, I could not cleanly backport this to
|
I will do a manual backport in a moment. |
GH-126802 is a backport of this pull request to the 3.13 branch. |
…n.py` (pythonGH-126394) (cherry picked from commit 12ca7e6) Co-authored-by: sobolevn <mail@sobolevn.me>
I also enabled
return
error code and fix two problems with it.I decided to split
strict_optional
PRs based on modules for easier reviews :)