"""Contains the parent class for Scriptlets used in MPF-MC."""


class Scriptlet:

    def __init__(self, mc, name):
        self.mc = mc
        self.name = name
        self.on_load()

    def __repr__(self):  # pragma: no cover
        return '<Scriptlet.{}>'.format(self.name)

    def on_load(self):  # pragma: no cover
        """Automatically called when this Scriptlet loads. It's the intention
        that the Scriptlet writer will overwrite this method in the Scriptlet.
        """
        pass

@@ -61,25 +61,149 @@
 %22%22%0A%0A
-%0Aclass Scriptlet:
+MYPY = False%0Aif MYPY:    # pragma: no cover%0A    from mpfmc.core.mc import MpfMc%0A%0A%0Aclass Scriptlet:%0A%0A    %22%22%22DEPRECATED scriptlet in MPF-MC.%22%22%22
 %0A%0A  

deprecate scriptlets