From 4049c57521696f338b3e8ee617944a61f192b47d Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Mon, 9 Jan 2023 11:20:27 +0100 Subject: [PATCH] Update docstring to match spaCy format. --- spacy/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/util.py b/spacy/util.py index e50ef6fd0..1d280120c 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -1742,9 +1742,9 @@ def all_equal(iterable): def _is_port_in_use(port: int, host: str = "localhost") -> bool: """Check if 'host:port' is in use. Return True if it is, False otherwise. - Keyword arguments: - port -- the port to check - host -- the host to check (default "localhost") + port (int): the port to check + host (str): the host to check (default "localhost") + RETURNS (bool): Whether 'host:port' is in use. """ s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: