yusufusta / eksipy

ekşi sözlük için unofficial ve private ASYNC API, giriş yapabilir; entry gönderebilirsiniz.
https://yusufusta.github.io/eksipy
GNU General Public License v3.0
17 stars 4 forks source link

(FLK-E712) Comparison to True should be 'if cond is True:' or 'if cond:' #1

Open renitreni opened 3 years ago

renitreni commented 3 years ago

Description

When comparing a variable to True, one should always use the form if x is True or simply if x. Since boolean in python are singletons, identity checks with is operator is recommended.

Occurrences

There are 4 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/Quiec/eksipy/issue/FLK-E712/occurrences/

renitreni commented 3 years ago

Hi @Quiec! I would like to fix this issue, Please assign this to me.

yusufusta commented 3 years ago

Thanks @throwexceptions! I will fix but I have school so I haven't time. Fortunately, I am free on the weekends.