79508091

Date: 2025-03-14 03:32:30
Score: 2.5
Natty:
Report link

Template.render always returns a string and this is by design. https://jinja.palletsprojects.com/en/stable/api/#jinja2.Template.render

If you need to convert you would have to

x = jinja2.Template('{{x|int}}',).render(x=1)
x_int = int(x)
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Seth.TW