Skip to content

Use comparison by reference for bool type objects #64

Closed
@czgdp1807

Description

@czgdp1807

Description of the problem

Currently there are many places in the code base which use == and != while comparing bool type objects.
Replace all such occurrences of == <bool-type-object> with is <bool-type-object> and != <bool-type-object> with is not <bool-type-object>. For example, == None with is None and != None with is not None.

Example of the problem

References/Other comments

[1] https://dbader.org/blog/difference-between-is-and-equals-in-python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions