mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Update invokeai/app/invocations/baseinvocation.py
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
@@ -617,11 +617,7 @@ def invocation_output(
|
||||
cls.__fields__.update({"type": output_type_field})
|
||||
|
||||
# to support 3.9, 3.10 and 3.11, as described in https://docs.python.org/3/howto/annotations.html
|
||||
annotations = (
|
||||
cls.__dict__.get("__annotations__", None)
|
||||
if isinstance(cls, type)
|
||||
else getattr(cls, "__annotations__", None)
|
||||
)
|
||||
annotations = cls.__dict__.get("__annotations__", None)
|
||||
if annotations:
|
||||
annotations.update({"type": output_type_annotation})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user