def __init__(
        self,
        text,
        text_settings,
        coordinates_name="topleft",
        coordinates_value=(0, 0),
        **kwargs,
    ):
        """Store arguments, set image and rect."""
        ### store arguments

        self.text = text
        self.text_settings = text_settings
        self.__dict__.update(kwargs)

        ### set image and rect

        self.image = TEXT_SURFS_DB[text_settings]["surf_map"][text]

        self.rect = self.image.get_rect()
        setattr(self.rect, coordinates_name, coordinates_value)
Store arguments, set image and rect.
nodezator/textman/cache.py