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

Commit 18e10e8

Browse files
committed
fixed style
1 parent e14707c commit 18e10e8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

proto/message.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,11 +949,13 @@ def _message_to_map(
949949
warning_msg = "`float_precision` will be removed in Protobuf 7.x."
950950

951951
else: # pragma: NO COVER
952-
warning_msg = "`float_precision` was removed in Protobuf 7.x+, and will be ignored."
952+
warning_msg = (
953+
"`float_precision` was removed in Protobuf 7.x+, and will be ignored."
954+
)
953955
warnings.warn(warning_msg, DeprecationWarning, stacklevel=3)
954956
# supress similar float_precision warning from protobuf library
955957
with warnings.catch_warnings():
956-
warnings.simplefilter('ignore', category=UserWarning)
958+
warnings.simplefilter("ignore", category=UserWarning)
957959
return map_fn(cls.pb(instance), **kwargs)
958960

959961

0 commit comments

Comments
 (0)