-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
[pre-commit.ci] pre-commit autoupdate #12910
Conversation
@@ -550,7 +550,7 @@ def snap(self) -> bytes: | |||
res = self.tmpfile.buffer.read() | |||
self.tmpfile.seek(0) | |||
self.tmpfile.truncate() | |||
return res | |||
return res # type: ignore[return-value] |
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.
It seems it's a false positive, the return from read() is in fact bytes
and not a buffer ?
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.
Looks like it can be a ReadableBuffer
and not bytes
: https://github.com/python/typeshed/blob/ca65e08/stdlib/_io.pyi#L126C43-L126C57
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.
Should we fix something then (cast to 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.
The pre-commit bot removed our changes, I force pushed them back :)
4b5654d
to
3fa2fa4
Compare
There's some deprecation warning emitted by pylint:
Created pylint-dev/pylint#10043 because it seems we know what we do here. Will handle in other merge request. |
193469b
to
fc3b6d9
Compare
24a6a8b
to
05b72ee
Compare
05b72ee
to
b22f8af
Compare
35dce4d
to
7fcae16
Compare
updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.2](astral-sh/ruff-pre-commit@v0.6.9...v0.7.2) - [github.com/adamchainz/blacken-docs: 1.19.0 → 1.19.1](adamchainz/blacken-docs@1.19.0...1.19.1) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](pre-commit/mirrors-mypy@v1.11.2...v1.13.0) - [github.com/tox-dev/pyproject-fmt: 2.3.1 → v2.5.0](tox-dev/pyproject-fmt@2.3.1...v2.5.0) - [github.com/asottile/pyupgrade: v3.18.0 → v3.19.0](asottile/pyupgrade@v3.18.0...v3.19.0) [mypy] Remove useless noqa, add noqa for new false positives Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
cf6c0da
to
607b9f7
Compare
Thanks for the review @nicoddemus, I'm going to work on #12875 for pytest 8.4 next |
updates: