Skip to content

Commit 10aa4ba

Browse files
committed
add raises to docstring for client.api_version()
1 parent 30f767c commit 10aa4ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kafka/client_async.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,8 @@ def api_version(self, operation, max_version=None):
978978
979979
Returns:
980980
int: The highest api version number compatible between client and broker.
981+
982+
Raises: IncompatibleBrokerVersion if no matching version is found
981983
"""
982984
# Cap max_version at the largest available version in operation list
983985
max_version = min(len(operation) - 1, max_version if max_version is not None else float('inf'))

0 commit comments

Comments
 (0)