mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-07-07 17:45:00 +00:00
462 B
462 B
Pylyzer-specific errors
E0001: Reassignment of a function referenced by other functions
def g(): return f()
def f(): return 1
def f(): return "a" # E0001: Reassignment of a function referenced by other functions
print(g())
E0002: __init__
doesn't have a first parameter named self
class C:
def __init__(a): pass # E0002
E0003: __init__
as a member variable
class C:
__init__ = 1 # E0003