summaryrefslogtreecommitdiff
path: root/tests/functional/u/useless/useless_return.py
blob: e7537353ef524846219f843097aee546a643f8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# pylint: disable=missing-docstring,too-few-public-methods,bad-option-value


def myfunc(): # [useless-return]
    print('---- testing ---')
    return

class SomeClass:
    def mymethod(self): # [useless-return]
        print('---- testing ---')
        return None

    # These are not emitted
    def item_at(self):
        return None