Adds an extension after the environment was created. .. versionadded:: 2.5
(self, extension: t.Union[str, t.Type["Extension"]])
| 368 | _environment_config_check(self) |
| 369 | |
| 370 | def add_extension(self, extension: t.Union[str, t.Type["Extension"]]) -> None: |
| 371 | """Adds an extension after the environment was created. |
| 372 | |
| 373 | .. versionadded:: 2.5 |
| 374 | """ |
| 375 | self.extensions.update(load_extensions(self, [extension])) |
| 376 | |
| 377 | def extend(self, **attributes: t.Any) -> None: |
| 378 | """Add the items to the instance of the environment if they do not exist |
nothing calls this directly
no test coverage detected