mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
resolve more flake8 problems
This commit is contained in:
parent
ef317be1f9
commit
766cb887e4
@ -2,7 +2,7 @@
|
|||||||
Init file for InvokeAI configure package
|
Init file for InvokeAI configure package
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .invokeai_config import (
|
from .invokeai_config import ( # noqa F401
|
||||||
InvokeAIAppConfig,
|
InvokeAIAppConfig,
|
||||||
get_invokeai_config,
|
get_invokeai_config,
|
||||||
)
|
)
|
||||||
|
@ -230,10 +230,10 @@ def int_or_float_or_str(value: str) -> Union[int, float, str]:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return int(value)
|
return int(value)
|
||||||
except:
|
except Exception as e: # noqa F841
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
return float(value)
|
return float(value)
|
||||||
except:
|
except Exception as e: # noqa F841
|
||||||
pass
|
pass
|
||||||
return str(value)
|
return str(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user