dry-python / dry-python/lambdas

Convert all dunder functions to use the normal function signature

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement good first issue hacktoberfest
主要语言
Python
星标
286
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。