google / google/python-card-framework

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

Abierto
#11 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
23
Forks
6
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.