o n¾nh/ã@s2ddlmZddlmZdgZGdd„deƒZdS)é)Ú annotations)ÚNativeTemplateÚAnsibleJ2Templatec@seZdZdZddd„ZdS)ra A helper class, which prevents Jinja2 from running AnsibleJ2Vars through dict(). Without this, {% include %} and similar will create new contexts unlike the special one created in Templar.template. This ensures they are all alike, except for potential locals. NFcCs^|dur t|jp dƒ}t|tƒr| ¡}|dur| |¡n| |¡}|j |j||j|j ¡S)N©) ÚdictÚglobalsÚ isinstanceÚcopyÚupdateÚ add_localsÚ environmentÚ context_classÚnameÚblocks)ÚselfÚvarsÚsharedÚlocalsrrúD/usr/local/lib/python3.10/dist-packages/ansible/template/template.pyÚ new_context!s  € zAnsibleJ2Template.new_context)NFN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrsN)Ú __future__rÚjinja2.nativetypesrÚ__all__rrrrrÚs