dry-python / dry-python/lambdas
Convert all dunder functions to use the normal function signature
Aperta
enhancement
good first issue
hacktoberfest
- Lingua principale
- Python
- Stelle
- 286
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.