Skip to content

Conversation

@MikaKerman
Copy link
Contributor

@MikaKerman MikaKerman commented Feb 3, 2025

null

@linear
Copy link

linear bot commented Feb 3, 2025

ELE-3960 adaptive cards

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2025

👋 @MikaKerman
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@MikaKerman MikaKerman force-pushed the ele-3960-adaptive-cards branch from 9312352 to 739b23f Compare February 3, 2025 10:14
ITALIC = "italic"


class BlockType(Enum):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i would just do str
its used only for pydantic, so there wont be an issue of comparing to raw text, and it will probably become a kader if and when we want to add cloud specific blocks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

- Introduced `BlockType` enum to define standardized block types
- Updated block classes to include explicit type annotations using `Literal` types
- Added type hints to base block classes to improve type safety
- Modified `blocks.py` and `message_body.py` to use `update_forward_refs()` instead of deprecated `model_rebuild()`
@MikaKerman MikaKerman force-pushed the ele-3960-adaptive-cards branch from 739b23f to 63e198c Compare February 3, 2025 11:58
@MikaKerman MikaKerman merged commit 4914af4 into master Feb 3, 2025
4 checks passed
@MikaKerman MikaKerman deleted the ele-3960-adaptive-cards branch February 3, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants