From 6a1da21e2694bf2d7e7baca487e92ae9b578b0e6 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Mon, 9 Jan 2023 11:20:52 +0100 Subject: [PATCH] Update docstring to match spaCy format. --- spacy/util.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spacy/util.py b/spacy/util.py index 1d280120c..8bf8fb1b0 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -1763,11 +1763,9 @@ def find_available_port(start: int, host: str, auto_select: bool = False) -> int If `auto_select` is True, the next free higher port will be used. - Keyword arguments: - start -- the port to start looking from - host -- the host to find a port on - auto_select -- whether to automatically select a new port if the given port is busy (default False) - + start (int): the port to start looking from + host (str): the host to find a port on + auto_select (bool): whether to automatically select a new port if the given port is busy (default False) RETURNS (int): The port to use. """ if not _is_port_in_use(start, host):