dry-python / dry-python/lambdas

Convert all dunder functions to use the normal function signature

オープン
#4 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。