Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing type hints formatplotlib.dates.DateFormatter #29994

Open
@johnthagen

Description

@johnthagen

Using this code:

frommatplotlib.datesimportDateFormatterdate_fmt="%H:%M:%S"date_formatter=DateFormatter(date_fmt)

Running Mypy instrict mode results in an erorr:

$ mypy --strict main.py main.py:4: error: Call to untyped function "DateFormatter" in typed context  [no-untyped-call]Found 1 error in 1 file (checked 1 source file)

We'd run Mypy instrict mode across all of our code base to catch programming errors and would like to use it with matplotlib without the need to suppress errors like this.

Environment

  • Python 3.11.11
  • matplotlib 3.10.1
  • mypy 1.15.0

Related References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp