You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing type hints for matplotlib.dates.DateFormatter #29994
$ 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 run Mypy in strict 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.
Activity
johnthagen commentedon May 1, 2025
This looks to be the constructor that is missing type annotations
matplotlib/lib/matplotlib/dates.py
Line 573 in 6378dd0
oscargus commentedon May 1, 2025
The
datesmodule is currently completely untyped. Matplotlib uses stub-files,.pyiin case you or someone else wants to start adding type information.bandpooja commentedon Jun 1, 2025
Added type hints in #30126.
rcomer commentedon Aug 4, 2025
Closing this one as a duplicate of #26942