dry-python / dry-python/lambdas

Convert all dunder functions to use the normal function signature

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue hacktoberfest
Lenguaje dominante
Python
Estrellas
286
Forks
6
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When we define a class like this:
```python
def func():
...

class MyClass:
my_func = lambda self, arg: arg

# or
class MyAnotherClass:
my_func = func
```
The coverage plugin will consider the `my_func` as *coveraged* without any tests.
This behavior is expected because for it the `my_func` is an attribute!

I think it will be great use the normal signature, this will enforce we to make *dummy* tests to ensures the `_` will work correctly.

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.