Passing type hints into templates, then on to included templates?
In a top level template I have:
Where XXXXX completes fine. However the same block within map.html does not understand the type.
Is there a way to get type hints in templates generally, or in this specific case? I've tried adding "with sections=sections" and searching for documentation on the subject of pycharm type hinting in the documentation. As is typical, the documentation seems to focus on describing menu items, rather than describing how to accomplish a particular task.
{% for section in sections %}
{{ section.XXXXX }}
{% endfor %}
{% include "galleries/map.html" with section=section%}
Where XXXXX completes fine. However the same block within map.html does not understand the type.
Is there a way to get type hints in templates generally, or in this specific case? I've tried adding "with sections=sections" and searching for documentation on the subject of pycharm type hinting in the documentation. As is typical, the documentation seems to focus on describing menu items, rather than describing how to accomplish a particular task.
1 条评论
排序方式
日期
投票数
Any help with this item?
请先登录再写评论。