dry-python / dry-python/lambdas

Convert all dunder functions to use the normal function signature

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue hacktoberfest
Dominant language
Python
Stars
286
Forks
6
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.