fix(nodes): fix usage of Optional

This commit is contained in:
psychedelicious
2023-05-11 10:57:08 +10:00
parent d2edb7c402
commit f488b1a7f2
5 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ class RandomRangeInvocation(BaseInvocation):
default=np.iinfo(np.int32).max, description="The exclusive high value"
)
size: int = Field(default=1, description="The number of values to generate")
seed: Optional[int] = Field(
seed: int = Field(
ge=0,
le=SEED_MAX,
description="The seed for the RNG (omit for random)",