Title: [Bug]: Missing typing for dates.py · Issue #26942 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Missing typing for dates.py · Issue #26942 · matplotlib/matplotlib
X Title: [Bug]: Missing typing for dates.py · Issue #26942 · matplotlib/matplotlib
Description: Bug summary with mypy, MinuteLocator results in error: error: Call to untyped function "MinuteLocator" in typed context [no-untyped-call] Code for reproduction import matplotlib.dates as mdates mdates.MinuteLocator(byminute=range(0, 60, ...
Open Graph Description: Bug summary with mypy, MinuteLocator results in error: error: Call to untyped function "MinuteLocator" in typed context [no-untyped-call] Code for reproduction import matplotlib.dates as mdates mda...
X Description: Bug summary with mypy, MinuteLocator results in error: error: Call to untyped function "MinuteLocator" in typed context [no-untyped-call] Code for reproduction import matplotlib.dates as ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/26942
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Missing typing for dates.py","articleBody":"### Bug summary\n\nwith mypy, `MinuteLocator` results in error:\r\n\r\nerror: Call to untyped function \"MinuteLocator\" in typed context [no-untyped-call]\r\n\n\n### Code for reproduction\n\n```python\nimport matplotlib.dates as mdates\r\n\r\nmdates.MinuteLocator(byminute=range(0, 60, 5))\r\n# run mypy --strict\n```\n\n\n### Actual outcome\n\nerror: Call to untyped function \"MinuteLocator\" in typed context [no-untyped-call]\r\n\n\n### Expected outcome\n\nNo Mypy error\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nUbuntu\n\n### Matplotlib Version\n\n3.8.0\n\n### Matplotlib Backend\n\nQTAgg\n\n### Python version\n\n3.8.10\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/chacabuco","@type":"Person","name":"chacabuco"},"datePublished":"2023-09-28T07:25:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/26942/matplotlib/issues/26942"}
| 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:4d30072b-9d82-b063-99e4-6ead10f78046 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2FC:22A568:1A3929:225BDB:6A5269D3 |
| html-safe-nonce | 0c2bb6b8c8b872ea878bab0749a0231b11a2567cc64c2b7468349f577aeaa12d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkZDOjIyQTU2ODoxQTM5Mjk6MjI1QkRCOjZBNTI2OUQzIiwidmlzaXRvcl9pZCI6IjY0MTI2NjAyMTkzOTUwNzQ1MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55f223a3507704681d87e9f7076149c0230cce70ec188f3c04f1956556d3063a |
| hovercard-subject-tag | issue:1916877994 |
| 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/26942/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6047077e5dbad8f042a195feb8e748e064c50810057a2c6ae9720c1c3534bc3/matplotlib/matplotlib/issues/26942 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6047077e5dbad8f042a195feb8e748e064c50810057a2c6ae9720c1c3534bc3/matplotlib/matplotlib/issues/26942 |
| og:image:alt | Bug summary with mypy, MinuteLocator results in error: error: Call to untyped function "MinuteLocator" in typed context [no-untyped-call] Code for reproduction import matplotlib.dates as mdates mda... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chacabuco |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width