MCPcopy Create free account
hub / github.com/nodejs/node / extend

Method extend

deps/v8/third_party/jinja2/environment.py:375–382  ·  view source on GitHub ↗

Add the items to the instance of the environment if they do not exist yet. This is used by :ref:`extensions ` to register callbacks and configuration values without breaking inheritance.

(self, **attributes: t.Any)

Source from the content-addressed store, hash-verified

373 self.extensions.update(load_extensions(self, [extension]))
374
375 def extend(self, **attributes: t.Any) -> None:
376 """Add the items to the instance of the environment if they do not exist
377 yet. This is used by :ref:`extensions <writing-extensions>` to register
378 callbacks and configuration values without breaking inheritance.
379 """
380 for key, value in attributes.items():
381 if not hasattr(self, key):
382 setattr(self, key, value)
383
384 def overlay(
385 self,

Callers 15

parseFunction · 0.45
_PullAbseilFunction · 0.45
_GenerateDefFileBuildFunction · 0.45
package_infoMethod · 0.45
collect_rulesFunction · 0.45
__init__Method · 0.45
list_templatesMethod · 0.45
__init__Method · 0.45
_make_nodeMethod · 0.45
copyMethod · 0.45
subparseMethod · 0.45
generic_visitMethod · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected