MCPcopy Index your code
hub / github.com/nodejs/node / add_extension

Method add_extension

tools/inspector_protocol/jinja2/environment.py:340–345  ·  view source on GitHub ↗

Adds an extension after the environment was created. .. versionadded:: 2.5

(self, extension)

Source from the content-addressed store, hash-verified

338 _environment_sanity_check(self)
339
340 def add_extension(self, extension):
341 """Adds an extension after the environment was created.
342
343 .. versionadded:: 2.5
344 """
345 self.extensions.update(load_extensions(self, [extension]))
346
347 def extend(self, **attributes):
348 """Add the items to the instance of the environment if they do not exist

Callers

nothing calls this directly

Calls 2

load_extensionsFunction · 0.70
updateMethod · 0.65

Tested by

no test coverage detected