From 8a4ec96f18a03ae29aa168a6642faea12902e592 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Mon, 10 Feb 2025 15:13:25 +0100 Subject: [PATCH] type new envvar as optional --- reflex/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/config.py b/reflex/config.py index eb7e0d459..f9fdb253a 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -545,10 +545,10 @@ class EnvironmentVariables: REFLEX_FRONTEND_ONLY: EnvVar[bool] = env_var(False) # The port to run the frontend on. - REFLEX_FRONTEND_PORT: EnvVar[int] = env_var(None) + REFLEX_FRONTEND_PORT: EnvVar[int | None] = env_var(None) # The port to run the backend on. - REFLEX_BACKEND_PORT: EnvVar[int] = env_var(None) + REFLEX_BACKEND_PORT: EnvVar[int | None] = env_var(None) # Reflex internal env to reload the config. RELOAD_CONFIG: EnvVar[bool] = env_var(False, internal=True)