Fix Python 3.9 typing for flux2_node

This commit is contained in:
RITIK
2025-11-26 13:46:17 +05:30
parent 9da452f039
commit 11d769c584
+2 -2
View File
@@ -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: