summaryrefslogtreecommitdiff
path: root/doc/data/messages/s/simplifiable-if-expression/bad.py
blob: 834ee38332245c9822b6abaf47c22ed595622d4a (plain)
1
2
3
4
5
6
7
8
9
FLYING_THINGS = ["bird", "plane", "superman", "this example"]


def is_flying_thing(an_object):
    return True if an_object in FLYING_THINGS else False  # [simplifiable-if-expression]


def is_not_flying_thing(an_object):
    return False if an_object in FLYING_THINGS else True  # [simplifiable-if-expression]