-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
backport annotations to 8.2 #12496
backport annotations to 8.2 #12496
Conversation
add the extra sphinx annotations to refer to Path instances add Path to nitpicky ignore
80e4b18
to
e60afd5
Compare
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.
Reviewed via:
wget https://patch-diff.githubusercontent.com/raw/pytest-dev/pytest/pull/12467.diff
wget https://patch-diff.githubusercontent.com/raw/pytest-dev/pytest/pull/12496.diff
vimdiff 12467.diff 12496.diff
in order to basically diff the diffs 😅
) -> None: | ||
object.__setattr__(self, "args", tuple(args)) | ||
object.__setattr__(self, "plugins", plugins) | ||
object.__setattr__(self, "dir", dir) | ||
|
||
cache: Cache |
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.
cache: Cache | |
# Set by cacheprovider plugin. | |
cache: Cache |
for consistency with main
(and less confusion).
Also, main
has Cache | None
here, but I think this is actually more correct? Looking at pytest_configure
in cacheprovider.py
I don't see a reason why this should ever be None
...
src/_pytest/terminal.py
Outdated
self, | ||
which_reports: str, | ||
sep_title: str, | ||
*, |
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.
Seems unrelated, was this intended?
backport of #12467