Python: self.__class__.

# correct
class Solution:
    num_tips = 0

    def __init__(self):
        self.__class__.num_tips += 1

# ~correct
class Solution:
    num_tips = 0

    def __init__(self):
        self.num_tips += 1

https://realpython.com/products/python-tricks-book/