From 11d769c584707d4892fab1d4eab35c0b048829b7 Mon Sep 17 00:00:00 2001 From: RITIK Date: Wed, 26 Nov 2025 13:46:17 +0530 Subject: [PATCH] Fix Python 3.9 typing for flux2_node --- nodes/flux2_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/flux2_node.py b/nodes/flux2_node.py index 6004da0..f55c1b5 100644 --- a/nodes/flux2_node.py +++ b/nodes/flux2_node.py @@ -1,9 +1,9 @@ -from typing import List +from typing import List, Optional from .flux2_utils import Flux2API, merge_reference_images -def _validate_resolution(width: int, height: int) -> str | None: +def _validate_resolution(width: int, height: int) -> Optional[str]: """Validate resolution constraints for FLUX.2.""" for dim_name, dim in (("width", width), ("height", height)): if dim <= 0: