Module blight.actions.skip_strip

The SkipStrip action.

Expand source code
"""
The `SkipStrip` action.
"""


from blight.action import STRIPAction
from blight.exceptions import SkipRun
from blight.tool import STRIP


class SkipStrip(STRIPAction):
    # NOTE(ww): type ignore here because mypy thinks this is a Liskov
    # substitution principle violation -- it can't see that `CompilerAction`
    # is safely specialized for `CompilerTool`.
    def before_run(self, tool: STRIP) -> None:  # type: ignore
        raise SkipRun

Classes

class SkipStrip (config: Dict[str, str])

A strip action, run whenever the tool is a STRIP instance.

Expand source code
class SkipStrip(STRIPAction):
    # NOTE(ww): type ignore here because mypy thinks this is a Liskov
    # substitution principle violation -- it can't see that `CompilerAction`
    # is safely specialized for `CompilerTool`.
    def before_run(self, tool: STRIP) -> None:  # type: ignore
        raise SkipRun

Ancestors

Inherited members