Pylint-protobuf

Latest version: v0.22.0

Safety actively analyzes 613734 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.22.0

- Fix for removal of ScopedNode.doc in astroid 3.x (58). Thanks matejsp
for the report.
- Update astroid transform to mark shim class definitions as having a
dynamic ``__getattr__`` method, this should better address all future
spurious "no-member" messages. Please submit a report if you find that
this is not the case.
- The minimum supported astroid version is now 2.9, a future update may
increase to 2.15.x (the last release in the 2.x series), then eventually
3.x

0.21.0

- Fix for removal of IAstroidChecker in pylint 3.x (57). Thanks matejsp,
Cireo, andjacobtylerwalls. Ref pylint-dev/pylint9094

0.20.2

- Remove runtime dependency on internal protobuf interface (50). Thanks
dsandbrink for the report.
- Fix unhandled KeyError in pylint_protobuf.transform (51). Thanks
hmc-cs-mdrissi for the report.

0.20.1

- Fix type checking of bytes fields incorrectly labelled as strings (48)
- Fix false-positive unexpected-keyword-arg when arguments are passed as
star-expansion (49). Thanks gal-simhi for the reports (48, 49)

0.20.0

- Add support for checking arguments to .add() methods of repeated composite
fields (similar to message constructors)
- Add support for checking validity of arguments to HasField()/ClearField()
calls on message fields. This change raises "protobuf-undefined-attribute"
when called correctly with an unknown field and adds two new warning message
types: "protobuf-no-repeated-membership" for checking a non-singular field,
and "protobuf-no-proto3-membership" for checking a non-optional,
non-submessage field in proto3
- Add support for checking extension fields. Adds a new warning message
"protobuf-wrong-extension-scope"
- Update protobuf-undefined-attribute behaviour to match pylint behaviour
for ambiguous inference, this should reduce the incidence of false-positive
messages for variables that could contain different protobuf messages (44).
Thanks zoedberg for the report
- Update handling of messages with full names matching well-known types to
match protobuf behaviour (45). Thanks zwn for the report
- Remove special-case handling of well-known types and update to match
existing behaviour of other protobuf messages
- Remove "protobuf-undefined-attribute" on missing top-level module attributes
since this is better handled by "no-member"
- Fix errors in module transform caused by field names matching Python
reserved keywords (46). Thanks AudriusButkevicius for the report

0.19.0

- Add support for imported message definitions via 'import "foo.proto";'
- Add support for field groups
- Fix false positive protobuf-type-error on assigning iterables to repeated
fields in message constructors (43). Thanks pashatyl for the report

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.