mirror of
https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git
synced 2026-05-01 11:41:36 +00:00
Remove dict typing (#21)
This commit is contained in:
@@ -3,7 +3,7 @@ import contextlib
|
|||||||
import aspect_ratio_helper._constants as _const
|
import aspect_ratio_helper._constants as _const
|
||||||
|
|
||||||
|
|
||||||
def safe_opt_util(shared_opts, key, default_key_map: dict[str, object]):
|
def safe_opt_util(shared_opts, key, default_key_map):
|
||||||
# attempt to retrieve key from shared options
|
# attempt to retrieve key from shared options
|
||||||
with contextlib.suppress(AttributeError):
|
with contextlib.suppress(AttributeError):
|
||||||
value = shared_opts.__getattr__(key)
|
value = shared_opts.__getattr__(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user