Skip to content

Mypy report does not get generated when cache is fresh #5103

Description

@qria

Mypy report does not get generated when cache is fresh (i.e. not stale).

Say we have a python file a.py:

a.py

def foo():
	pass

Without .mypy_cache folder xml report generated by mypy a.py --xml-report . is as follows:

index.xml

<?xml-stylesheet type="text/xsl" href="mypy-html.xslt"?><mypy-report-index name="index"><file module="a" name="a.py" total="2" any="1" empty="1" imprecise="0" precise="0" unanalyzed="0"/></mypy-report-index>

However running mypy a.py --xml-report . again produces this:

index.xml

<?xml-stylesheet type="text/xsl" href="mypy-html.xslt"?><mypy-report-index name="index"/>

Removing .mypy_cache and running it again properly generates the report.

Versions:

python version: 3.6.5
mypy version: mypy-0.610+dev.76d60b018c93f6879a01a30f89bf0586c610bc06
lxml version: lxml-4.2.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions