google / google/python-card-framework

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

Ouverte
#11 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
23
Forks
6
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.