allenai / allenai/catwalk

Switch mypy_extensions.KwArg to typing.Protocol

Abierto
#33 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
154
Forks
18
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

@dirkgr noticed that the use of mypy_extensions.KwArg [here](https://github.com/allenai/catwalk/blob/main/catwalk/task.py#L64) could instead make use of typing.Protocol as in [here](https://github.com/allenai/catwalk/blob/733244a5e57289c3d03861ad6ab183d123e8f391/catwalk/models/eleuther.py#L64).

This may allow us to support python >= 3.8.

See [this SO post](https://stackoverflow.com/a/65564936) for a quick example.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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.