google / google/python-card-framework

Add missing type hints to public API classes in card_framework/v2

未关闭
#11 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
23
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

I noticed that several public-facing classes in `card_framework/v2` don’t currently have full type annotations on their methods.
Adding type hints would improve IDE autocomplete, static analysis, and overall developer experience, without changing any runtime behavior.

Suggested scope:

- `card_framework/v2/card.py`
- `card_framework/v2/header.py`
- `card_framework/v2/section.py`
- Common widgets like `text_paragraph.py`, `image.py`, etc.

This should be a purely additive change (type hints + imports from `typing`) and should not affect existing tests or serialization logic.

If this sounds reasonable, I’d be happy to take this up as a first contribution.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。