mirror of
https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git
synced 2026-01-26 19:19:58 +00:00
Remove dict typing (#21)
This commit is contained in:
@@ -3,7 +3,7 @@ import contextlib
|
||||
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
|
||||
with contextlib.suppress(AttributeError):
|
||||
value = shared_opts.__getattr__(key)
|
||||
|
||||
Reference in New Issue
Block a user