Skip to content

Templating engines (jinja2, ...) #8249

Closed as not planned
Closed as not planned
@dumblob

Description

@dumblob
  • Are you reporting a bug, or opening a feature request?

Can't judge (I'm new to mypy). Therefore first of all just question whether I'm missing something.

  • Please insert below the code you are checking with mypy,
    or a mock-up repro if the source is private. We would appreciate
    if you try to simplify your case to a minimal repro.

E.g. any Flask app as Flask uses jinja2 templating engine.

  • What is the actual behavior/output?
templates/dashboard.html:1: error: invalid syntax
Found 1 error in 1 file (checked 6 source files)

(note how mypy didn't output any other error though the other 5 files are *.py files full of typing errors if checked separately)

  • What is the behavior/output you expect?

mypy shall find out relevant parts in templates and then checks them (e.g. pytype from Google seems to do that somehow if I'm not mistaken) instead of outputting such a general error which additionally suppresses all other errors in other files 😮

  • What are the versions of mypy and Python you are using?

mypy 0.761 (release)
Python 3.8.1 (release)

Do you see the same issue after installing mypy from Git master?

didn't check

  • What are the mypy flags you are using? (For example --strict-optional)

no flags

  • If mypy crashed with a traceback, please paste
    the full traceback below.

no traceback, just the output above 😢

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions