Skip to content

Commit eeada7e

Browse files
committed
Use Sphinx warning syntax
1 parent 1fe66f6 commit eeada7e

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
@@ -660,8 +660,10 @@ def metrics(self, raw=False):
660660
This is ported from the Java Producer, for details see:
661661
https://kafka.apache.org/documentation/#producer_monitoring
662662
663-
Warning: This is an unstable interface. It may change in future
664-
releases without warning."""
663+
Warning:
664+
This is an unstable interface. It may change in future
665+
releases without warning.
666+
"""
665667
if raw:
666668
return self._metrics.metrics
667669

0 commit comments

Comments
 (0)