What language does this apply to?
If it's a proto syntax change, is it for proto2 or proto3? proto3
If it's about generated code change, what programming language? Python
Describe the problem you are trying to solve.
- Make
.proto
syntax = "proto3";
package foo;
message Foo {
string foo = 1;
}
- Compile
.proto
$ protoc --python_out=. foo.proto
- Lint
$ flake8
# Output
# E712 comparison to False should be 'if cond is False:' or 'if not cond:'
# Line in _pb2.py
# if _descriptor._USE_C_DESCRIPTORS == False:
Describe the solution you'd like
- Use
not if the expected bool value is False
Describe alternatives you've considered
- Edit
_pb2.py file
Additional context
$ protoc --version
libprotoc 24.4
What language does this apply to?
If it's a proto syntax change, is it for proto2 or proto3? proto3
If it's about generated code change, what programming language? Python
Describe the problem you are trying to solve.
.proto.protoDescribe the solution you'd like
notif the expectedboolvalue isFalseDescribe alternatives you've considered
_pb2.pyfileAdditional context