finesse.script.containers.TokenMixin

Overview

class finesse.script.containers.TokenMixin(lineno: int, start_index: int, stop_index: int, type: str)[source]

Bases: TokenContainer

A class that provides functionality shared by KatMetaToken and KatToken.

Injected this way to prevent KatToken inheriting from KatMetaToken, which would be confusing since they are both tokens, but one represent real tokens while the other does not.