Rank multiple calls so only the first 2 calls are alerted

This commit is contained in:
Joe Farebrother
2025-09-01 16:23:42 +01:00
parent 8545c7d36f
commit f7097136f1
2 changed files with 43 additions and 37 deletions

View File

@@ -86,4 +86,32 @@ class F4(F2, F3):
F2.__init__(self)
F3.__init__(self)
F4()
F4()
class G1:
def __init__(self):
print("G1 init")
class G2(G1):
def __init__(self):
print("G2 init")
G1.__init__(self)
class G3(G1):
def __init__(self):
print("G3 init")
G1.__init__(self)
class G4(G1):
def __init__(self):
print("G4 init")
G1.__init__(self)
class G5(G2,G3,G4):
def __init__(self): # $ Alert # Only one alert is generated, that mentions the first two calls
print("G5 init")
G2.__init__(self)
G3.__init__(self)
G4.__init__(self)
G5()