State for the assertion plugin.
| 78 | |
| 79 | |
| 80 | class AssertionState: |
| 81 | """State for the assertion plugin.""" |
| 82 | |
| 83 | def __init__(self, config: Config, mode) -> None: |
| 84 | self.mode = mode |
| 85 | self.trace = config.trace.root.get("assertion") |
| 86 | self.hook: Optional[rewrite.AssertionRewritingHook] = None |
| 87 | |
| 88 | |
| 89 | def install_importhook(config: Config) -> rewrite.AssertionRewritingHook: |
no outgoing calls