summaryrefslogtreecommitdiff
path: root/doc/data/messages/t/too-many-boolean-expressions/bad.py
blob: 5f3ae4194fb47f3b3ac488904d906ceaa66a892c (plain)
1
2
3
4
5
def can_be_divided_by_two_and_are_not_zero(x, y, z):
    # Maximum number of boolean expressions in an if statement (by default 5)
    # +1: [too-many-boolean-expressions]
    if (x and y and z) and (x % 2 == 0 and y % 2 == 0 and z % 2 == 0):
        pass