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 directoryAnd immediately fails with the following in WSL: /usr/bin/env: ‘bash\r’: No such file or directorySo 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.pyifiles again as the issue seems to be resolved.Fixes all
NQA102 "# noqa: F821" has no matching violationsthat were ignored (we don't have a generation script forstubs/s2clientprotocolso that was done manually)