dry-python / dry-python/returns

Further explanation needed

Abierto
#1,049 2 comentarios 0 reacciones 0 asignados Ver en GitHub
documentation enhancement good first issue help wanted
Lenguaje dominante
Python
Estrellas
4.4k
Forks
155
Merge medio
2 h 27 min
PR fusionados (30 d)
22

Descripción

Hi all,

Big fan of functional programming. I'm glad to see ya'll trying to bring this to Python. My question / request is pretty basic, I hope. I was looking over the docs and I saw:

`result: Result[int, Any] = Success(1).map(double)`

When looking at this I was confused for a couple of reasons, since the syntax is new to me. But the biggest stumbling block was the:

`result:`

I couldn't find a clear discussion in the documentation for what `thing:` means. Can you explain this syntax before using it in the document? I am also confused about why you would set this equal to a type? It's not clear to me how or why this works from a syntax standpoint.

Hope these are fair comments and easy to resolve!

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.