Skip to content

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

@renitreni

Description

@renitreni

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions