Skip to content

Difference between the command output and the html report #14297

@JCHacking

Description

@JCHacking

Bug Report
When I run mypy I see the following result:
Generated HTML report (via XSLT): C:\Users\jcmencia\PycharmProjects\QA\py_requests\reports\typing\index.html Success: no issues found in 10 source files

But in the html report I get the following line:
self.assertEqual(first=self.__response_data.__str__(), second="RESPONSE", msg="Error verifying Response DTO in a readable format - Incorrect Values")

  • Any Types on this line: Explicit (x3)

Is this an expected behavior or as I think it is a bug?

Environment

  • Mypy version used: 0.991
  • Mypy command-line flags: any flag
  • Mypy configuration options from mypy.ini (and other config files): pyproject.toml
    [tool.mypy]
    html_report = "reports/typing"
    files = "src,tests"
    disallow_any_generics = true
    disallow_incomplete_defs = true
    disallow_untyped_decorators = true
    disallow_untyped_defs = true
    disallow_untyped_calls = true
    disallow_subclassing_any = true
    check_untyped_defs = true
    no_implicit_optional = true
    show_error_codes = true
    warn_redundant_casts = true
    warn_return_any = true
    warn_unused_configs = true
    warn_unused_ignores = true
    warn_unreachable = true
    strict_equality = true
    strict_concatenate = true
  • Python version used: 3.10.9 and 3.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions