Title: Missing type hints for `matplotlib.dates.DateFormatter` · Issue #29994 · matplotlib/matplotlib · GitHub
Open Graph Title: Missing type hints for `matplotlib.dates.DateFormatter` · Issue #29994 · matplotlib/matplotlib
X Title: Missing type hints for `matplotlib.dates.DateFormatter` · Issue #29994 · matplotlib/matplotlib
Description: Using this code: from matplotlib.dates import DateFormatter date_fmt = "%H:%M:%S" date_formatter = DateFormatter(date_fmt) Running Mypy in strict mode results in an erorr: $ mypy --strict main.py main.py:4: error: Call to untyped functio...
Open Graph Description: Using this code: from matplotlib.dates import DateFormatter date_fmt = "%H:%M:%S" date_formatter = DateFormatter(date_fmt) Running Mypy in strict mode results in an erorr: $ mypy --strict main.py m...
X Description: Using this code: from matplotlib.dates import DateFormatter date_fmt = "%H:%M:%S" date_formatter = DateFormatter(date_fmt) Running Mypy in strict mode results in an erorr: $ mypy --strict...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29994
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing type hints for `matplotlib.dates.DateFormatter`","articleBody":"Using this code:\n\n```py\nfrom matplotlib.dates import DateFormatter\n\ndate_fmt = \"%H:%M:%S\"\ndate_formatter = DateFormatter(date_fmt)\n```\n\nRunning Mypy in `strict` mode results in an erorr:\n\n```\n$ mypy --strict main.py \nmain.py:4: error: Call to untyped function \"DateFormatter\" in typed context [no-untyped-call]\nFound 1 error in 1 file (checked 1 source file)\n```\n\nWe 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.\n\n### Environment\n\n- Python 3.11.11\n- matplotlib 3.10.1\n- mypy 1.15.0\n\n### Related References\n\n- #20504\n- #24976","author":{"url":"https://github.com/johnthagen","@type":"Person","name":"johnthagen"},"datePublished":"2025-05-01T12:28:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/29994/matplotlib/issues/29994"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:40dce52e-1d2c-7cad-4e48-ddc5964eef7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B232:11D220:32B193:4304EB:6A518F1F |
| html-safe-nonce | e47070cd8b0bfbd20d5d0307ba51072509943cb5633865317c3619ed62612e64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjMyOjExRDIyMDozMkIxOTM6NDMwNEVCOjZBNTE4RjFGIiwidmlzaXRvcl9pZCI6IjI5NTgwMDYzODg3MDg3MDgxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6e57bb281f5c4daae195ceca1e1fd5a20cca9f1e0bdea8641d887c48d84be1a2 |
| hovercard-subject-tag | issue:3033745300 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/29994/issue_layout |
| twitter:image | https://opengraph.githubassets.com/629e1b6a4ea28a4d867fc02d786d9dec03fbd90e2c4e4532bb957db47dbc78bc/matplotlib/matplotlib/issues/29994 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/629e1b6a4ea28a4d867fc02d786d9dec03fbd90e2c4e4532bb957db47dbc78bc/matplotlib/matplotlib/issues/29994 |
| og:image:alt | Using this code: from matplotlib.dates import DateFormatter date_fmt = "%H:%M:%S" date_formatter = DateFormatter(date_fmt) Running Mypy in strict mode results in an erorr: $ mypy --strict main.py m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnthagen |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width