Skip to content

Commit 6c27862

Browse files
Update invokeai/app/invocations/baseinvocation.py
Co-authored-by: psychedelicious <[email protected]>
1 parent 2cb57ef commit 6c27862

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

invokeai/app/invocations/baseinvocation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,7 @@ def wrapper(cls: Type[GenericBaseInvocationOutput]) -> Type[GenericBaseInvocatio
617617
cls.__fields__.update({"type": output_type_field})
618618

619619
# 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-
)
620+
annotations = cls.__dict__.get("__annotations__", None)
625621
if annotations:
626622
annotations.update({"type": output_type_annotation})
627623

0 commit comments

Comments
 (0)