Create a copy of this extension bound to another environment.
(self, environment: Environment)
| 89 | self.environment = environment |
| 90 | |
| 91 | def bind(self, environment: Environment) -> "Extension": |
| 92 | """Create a copy of this extension bound to another environment.""" |
| 93 | rv = object.__new__(self.__class__) |
| 94 | rv.__dict__.update(self.__dict__) |
| 95 | rv.environment = environment |
| 96 | return rv |
| 97 | |
| 98 | def preprocess( |
| 99 | self, source: str, name: t.Optional[str], filename: t.Optional[str] = None |