We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb57ef commit 6c27862Copy full SHA for 6c27862
invokeai/app/invocations/baseinvocation.py
@@ -617,11 +617,7 @@ def wrapper(cls: Type[GenericBaseInvocationOutput]) -> Type[GenericBaseInvocatio
617
cls.__fields__.update({"type": output_type_field})
618
619
# to support 3.9, 3.10 and 3.11, as described in https://docs.python.org/3/howto/annotations.html
620
- annotations = (
621
- cls.__dict__.get("__annotations__", None)
622
- if isinstance(cls, type)
623
- else getattr(cls, "__annotations__", None)
624
- )
+ annotations = cls.__dict__.get("__annotations__", None)
625
if annotations:
626
annotations.update({"type": output_type_annotation})
627
0 commit comments