Update docstring to match spaCy format.

This commit is contained in:
Raphael Mitsch 2023-01-09 11:20:27 +01:00 committed by GitHub
parent f14b63e7a3
commit 4049c57521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1742,9 +1742,9 @@ def all_equal(iterable):
def _is_port_in_use(port: int, host: str = "localhost") -> bool: 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. """Check if 'host:port' is in use. Return True if it is, False otherwise.
Keyword arguments: port (int): the port to check
port -- the port to check host (str): the host to check (default "localhost")
host -- the host to check (default "localhost") RETURNS (bool): Whether 'host:port' is in use.
""" """
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try: try: