codon icon indicating copy to clipboard operation
codon copied to clipboard

Class variables not inherited

Open arshajii opened this issue 9 months ago • 0 comments

class A:
    apple = {"a": 1, "b": 2, "c": 3}

class B(A):
    pass

print(B.apple)

Works as expected in Python, but in Codon class B does not inherit the apple class variable.

arshajii avatar Jul 24 '25 15:07 arshajii