Skip to content

Jinja 3.0 is throwing DeprecationWarning: The 'with' extension is deprecated and will be removed in Jinja 3.1. This is built in now. #1429

@nickjj

Description

@nickjj

Environment:

  • Python version: 3.9.5
  • Jinja version: 3.0.0

Issue:

I updated a decently large project to use Flask 2.0 / Jinja 3.0 and now I'm seeing this deprecation warning when I start the app:

python3.9/site-packages/jinja2/environment.py:119: DeprecationWarning: The 'with' extension is
deprecated and will be removed in Jinja 3.1. This is built in now.
    result[extension.identifier] = extension(environment)

In my application I am referencing includes like {% include 'example.html' with context %}. It sounds like at the app level with is still supported but something internally to Jinja 3 needs to change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions