We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e61dbd commit 906f1baCopy full SHA for 906f1ba
docs/source/ProtobufStructures.rst
@@ -833,10 +833,8 @@ Many protobuf messages contain optional fields. Use the ``HasField()`` method to
833
if entry.HasField('saturation'):
834
saturation_value = entry.saturation
835
else:
836
- saturation_value = None
+ saturation_value = "1*"
837
838
- # Or use getattr with a default value
839
- saturation = getattr(entry, 'saturation', None)
840
841
Working with Vec3d and Vec3i
842
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments