fix #16169 Py 3.9 compatibility

Co-Authored-By: SLAPaper Pang <slapaper.pku@gmail.com>
This commit is contained in:
w-e-w 2024-07-11 18:45:13 +09:00
parent bad47dcfeb
commit b1695c1b68

View File

@ -118,7 +118,7 @@ def apply_size(p, x: str, xs) -> None:
def find_vae(name: str):
if name := name.strip().lower() in ('auto', 'automatic'):
if (name := name.strip().lower()) in ('auto', 'automatic'):
return 'Automatic'
elif name == 'none':
return 'None'