Skip to content

Commit

Permalink
fix: remove redundant/deprecated UIType
Browse files Browse the repository at this point in the history
These changes are needed for compatibility with invoke-ai/InvokeAI#5157, though leaving them in won't cause any problems - just a warning.
  • Loading branch information
psychedelicious committed Nov 25, 2023
1 parent 6e4b53c commit 1281349
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions images_to_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
InvocationContext,
OutputField,
UIComponent,
UIType,
WithMetadata,
WithWorkflow,
invocation,
Expand Down Expand Up @@ -169,7 +168,6 @@ class FloatsToStringsInvocation(BaseInvocation):
default_factory=list,
description="float or collection of floats",
input=Input.Connection,
ui_type=UIType.FloatCollection,
)

def invoke(self, context: InvocationContext) -> StringCollectionOutput:
Expand All @@ -194,7 +192,6 @@ class IntsToStringsInvocation(BaseInvocation):
default_factory=list,
description="int or collection of ints",
input=Input.Connection,
ui_type=UIType.IntegerCollection,
)

def invoke(self, context: InvocationContext) -> StringCollectionOutput:
Expand Down Expand Up @@ -540,7 +537,6 @@ class ImagesToGridsInvocation(BaseInvocation, WithWorkflow, WithMetadata):
images: list[ImageField] = InputField(
default_factory=list,
description="The image collection to turn into grids",
ui_type=UIType.ImageCollection,
)
columns: int = InputField(
default=1,
Expand Down

0 comments on commit 1281349

Please sign in to comment.