mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-12-03 00:07:21 +00:00
15 lines
341 B
Python
15 lines
341 B
Python
class Leaf:
|
|
points: int = 0
|
|
class Branch:
|
|
leaf: Leaf
|
|
class Root:
|
|
branch: Branch
|
|
class Other:
|
|
score: int = 9
|
|
def update(root: Root, other: Other):
|
|
root.branch.leaf.points = root.branch.leaf.points + 1
|
|
return root.branch.leaf.points + other.score
|
|
def shadow(score):
|
|
return score
|
|
# score stays here.
|
|
label = "score"
|