-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cast None -> {}
in KeyValueLabels
#16067
Conversation
class BlockSchema(ObjectBaseModel): | ||
"""An ORM representation of a block schema.""" | ||
|
||
checksum: str = Field(default=..., description="The block schema's unique checksum") | ||
fields: Dict[str, Any] = Field( | ||
default_factory=dict, description="The block schema's field schema" | ||
) | ||
block_type_id: Optional[UUID] = Field(default=..., description="A block type ID") | ||
block_type: Optional[BlockType] = Field( | ||
default=None, description="The associated block type" | ||
) | ||
capabilities: List[str] = Field( | ||
default_factory=list, | ||
description="A list of Block capabilities", | ||
) | ||
version: str = Field( | ||
default=DEFAULT_BLOCK_SCHEMA_VERSION, | ||
description="Human readable identifier for the block schema", | ||
) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated tidyness: this was duplicated from L975 (it was an exact duplicate)
CodSpeed Performance ReportMerging #16067 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Nate!
I also have this labels PR I've been working up (#16050) that uses a similar pattern. Feel free to merge this one and I'll deal with the conflicts on my side.
Co-authored-by: Chris Pickett <[email protected]>
closes #16066
should mitigate the immediate problem of validation errors but its not yet clear to me why
labels=None
is passedand also moves the type to
prefect.types