googleapis / proto-plus-python

Beautiful, idiomatic protocol buffers in Python
Apache License 2.0
169 stars 35 forks source link

fix: Remove check for Protobuf version #474

Closed parthea closed 3 months ago

parthea commented 3 months ago

This PR removes the check for google.protobuf.__version__ and simply uses try, catch instead. If there is no attribute MessageMapContainer on _message , then the compatibility code introduced in https://github.com/googleapis/proto-plus-python/pull/433 is used.