mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-07-09 18:44:59 +00:00
23 lines
326 B
Python
23 lines
326 B
Python
# E0001
|
|
|
|
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
|
|
|
|
# E0002
|
|
|
|
class C:
|
|
def __init__(self): pass # OK
|
|
class C:
|
|
def __init__(a): pass # ERR
|
|
|
|
# E0003
|
|
|
|
class C:
|
|
__init__ = 1 # ERR
|