Skip to content

Commit b0e5b1d

Browse files
committed
Fix CI lint failure by pinning to protobuf-4 (#6650)
* Pin `protobuf` to version 4 to fix "Lint check" CI failure such as https://github.com/quantumlib/Cirq/actions/runs/9654153610/job/26627844188 * Also bump `types-protobuf` `mypy-protobuf` for consistency with protobuf-4.x
1 parent 4112b59 commit b0e5b1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cirq-google/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
google-api-core[grpc] >= 1.14.0
22
proto-plus >= 1.20.0
3-
protobuf >= 3.15.0
3+
protobuf >= 3.15.0, < 5.0.0

dev_tools/requirements/deps/mypy.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ mypy==1.2.0
44
# packages with stub types for various libraries
55
types-backports==0.1.3
66
types-cachetools
7-
types-protobuf~=3.20
7+
types-protobuf>=3.20.0,<5.0.0
88
types-requests==2.28.1
99
types-setuptools==62.6.1

dev_tools/requirements/deps/protos.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# This bundles protoc 3.24.3, which we use for generating proto code.
44
grpcio-tools~=1.59.0
55

6-
mypy-protobuf==3.4
6+
mypy-protobuf~=3.4

0 commit comments

Comments
 (0)