pylyzer/tests/e0001.py

10 lines
181 B
Python

def a(): return 1
def a(): return "a" # OK
print(a())
def g(): return f()
def f(): return 1
def f(): return "a" # E0001: Reassignment of a function referenced by other functions