Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 2359c2d

Browse files
committed
filter based on message
1 parent 3a96248 commit 2359c2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

proto/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ def _message_to_map(
955955
warnings.warn(warning_msg, DeprecationWarning, stacklevel=3)
956956
# suppress similar float_precision warning from protobuf library.
957957
with warnings.catch_warnings():
958-
warnings.simplefilter("ignore", category=UserWarning)
958+
warnings.simplefilter("ignore", message=".*float_precision.*")
959959
return map_fn(cls.pb(instance), **kwargs)
960960

961961

0 commit comments

Comments
 (0)