From 979f49f70da474d4ebbd3e401f63e56cd127f7d3 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Sat, 8 Feb 2025 00:18:56 +0100 Subject: [PATCH] update docstring --- reflex/utils/processes.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reflex/utils/processes.py b/reflex/utils/processes.py index 0eb2cf162..a0c13300d 100644 --- a/reflex/utils/processes.py +++ b/reflex/utils/processes.py @@ -118,15 +118,12 @@ def change_port(port: int, _type: str) -> int: def handle_port(service_name: str, port: int, auto_increment: bool) -> int: """Change port if the specified port is in use and is not explicitly specified as a CLI arg or config arg. - otherwise tell the user the port is in use and exit the app. - - We make an assumption that when port is the default port,then it hasn't been explicitly set since its not straightforward - to know whether a port was explicitly provided by the user unless its any other than the default. + Otherwise tell the user the port is in use and exit the app. Args: service_name: The frontend or backend. port: The provided port. - auto_increment: Whether to automatically switch the port. + auto_increment: Whether to automatically increment the port. Returns: The port to run the service on.