mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update invokeai/app/invocations/baseinvocation.py
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
parent
2cb57ef301
commit
6c2786201b
@ -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})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user