Skip to content

Commit ad3d870

Browse files
committed
Use Sphinx warning syntax
1 parent 0e54b12 commit ad3d870

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

kafka/consumer/group.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,10 @@ def metrics(self, raw=False):
851851
This is ported from the Java Consumer, for details see:
852852
https://kafka.apache.org/documentation/#new_consumer_monitoring
853853
854-
Warning: This is an unstable interface. It may change in future
855-
releases without warning."""
854+
Warning:
855+
This is an unstable interface. It may change in future
856+
releases without warning.
857+
"""
856858
if raw:
857859
return self._metrics.metrics
858860

kafka/producer/kafka.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,10 @@ def metrics(self, raw=False):
662662
This is ported from the Java Producer, for details see:
663663
https://kafka.apache.org/documentation/#producer_monitoring
664664
665-
Warning: This is an unstable interface. It may change in future
666-
releases without warning."""
665+
Warning:
666+
This is an unstable interface. It may change in future
667+
releases without warning.
668+
"""
667669
if raw:
668670
return self._metrics.metrics
669671

0 commit comments

Comments
 (0)