-
-
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
Check *_pb2.pyi
files again
#10909
Check *_pb2.pyi
files again
#10909
Conversation
All these If you used the latest version of mypy-protobuf to regenerate these files, we should probably update the pinned version here, so these changes aren't overridden the next time the files are regenerated: typeshed/scripts/generate_proto_stubs.sh Line 16 in 608eca5
|
This comment has been minimized.
This comment has been minimized.
The script ends at the followign in git bash: + python3 -m venv venv
+ source venv/bin/activate
./scripts/generate_proto_stubs.sh: line 47: venv/bin/activate: No such file or directory And immediately fails with the following in WSL: /usr/bin/env: ‘bash\r’: No such file or directory So I can't really validate locally Edit: \r because the script is in CRLF, I'll open a PR to fix that. |
(Yeah, I've never run the script locally either) |
|
*_pb2.pyi
files again and remove redundant suppressions*_pb2.pyi
files again
While we're at it:
But isn't that exactly what Black is for? The protobuf stubs generation script even tries to run black (which currently ends up doing nothing), so I'm a bit confused. |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Thanks! |
I was looking at Ruff vs Flake8 differences in typeshed and noticed this.
Start checking
*_pb2.pyi
files again as the issue seems to be resolved.Fixes all
NQA102 "# noqa: F821" has no matching violations
that were ignored (we don't have a generation script forstubs/s2clientprotocol
so that was done manually)