Method
from_string
(
cls, template: str, mapping: Optional[Dict] = None, mangling_predicate=None
)
Source from the content-addressed store, hash-verified
| 278 | |
| 279 | @classmethod |
| 280 | def from_string( |
| 281 | cls, template: str, mapping: Optional[Dict] = None, mangling_predicate=None |
| 282 | ): |
| 283 | return cls( |
| 284 | ast.parse(template), mapping=mapping, mangling_predicate=mangling_predicate |
| 285 | ) |
| 286 | |
| 287 | def visit_Module(self, code): |
| 288 | if not self.enabled: |
Callers
nothing calls this directly
Tested by
no test coverage detected