dry-python / dry-python/lambdas

Convert all dunder functions to use the normal function signature

Ouverte
#4 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement good first issue hacktoberfest
Langage dominant
Python
Étoiles
286
Forks
6
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

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.