Skip to content

Commit

Permalink
Minor change on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shunping committed Dec 20, 2024
1 parent aacbd60 commit 1d92b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/coders/coders.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,8 @@ def __hash__(self):
@classmethod
def from_type_hint(cls, typehint, unused_registry):
# The typehint must be a subclass of google.protobuf.message.Message.
# Using message.Message itself prevents ProtoCoder usage, as required APIs
# are not implemented in the base class. If this occurs, an error is raised
# ProtoCoder cannot work with message.Message itself, as required APIs are
# not implemented in the base class. If this occurs, an error is raised
# and the system defaults to other fallback coders.
if (issubclass(typehint, proto_utils.message_types) and
typehint != message.Message):
Expand Down

0 comments on commit 1d92b01

Please sign in to comment.