Title: Type annotation errors with NumPy >= 2.2 · Issue #268 · python-quantities/python-quantities · GitHub
Open Graph Title: Type annotation errors with NumPy >= 2.2 · Issue #268 · python-quantities/python-quantities
X Title: Type annotation errors with NumPy >= 2.2 · Issue #268 · python-quantities/python-quantities
Description: NumPy 2.2 made some changes to type annotations, which lead to errors when running mypy quantities. The release notes for NumPy 2.2.1 mention some problems with MyPy, and recommend using basedpyright.
Open Graph Description: NumPy 2.2 made some changes to type annotations, which lead to errors when running mypy quantities. The release notes for NumPy 2.2.1 mention some problems with MyPy, and recommend using basedpyright.
X Description: NumPy 2.2 made some changes to type annotations, which lead to errors when running mypy quantities. The release notes for NumPy 2.2.1 mention some problems with MyPy, and recommend using basedpyright.
Opengraph URL: https://github.com/python-quantities/python-quantities/issues/268
X: @github
Domain: www.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type annotation errors with NumPy \u003e= 2.2","articleBody":"NumPy 2.2 made some changes to type annotations, which lead to errors when running `mypy quantities`. The [release notes for NumPy 2.2.1](https://numpy.org/doc/stable/release/2.2.1-notes.html) mention some problems with MyPy, and recommend using basedpyright.","author":{"url":"https://github.com/apdavison","@type":"Person","name":"apdavison"},"datePublished":"2026-01-12T21:39:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/268/python-quantities/issues/268"}
| 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:16c8fa2b-cac4-7ed3-7260-3c012c5f1b58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE06:1B38B1:85B981:AE6E77:696AEDE6 |
| html-safe-nonce | ac5da00bc7134fbd75cfeac0c54e3f1e7885458344acd2a537cad1285ead0bdd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA2OjFCMzhCMTo4NUI5ODE6QUU2RTc3OjY5NkFFREU2IiwidmlzaXRvcl9pZCI6IjI4Nzg2NzgwNDYzODM3MzAxNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 60ce20827a4131a680687dd18107c343f608679756bfd2a1132a145fe552e765 |
| hovercard-subject-tag | issue:3806081788 |
| 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/python-quantities/python-quantities/268/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ffc5590873a6e77ec2ef7577d8748acba1e5680f1f68bdce7114cd7010e046fb/python-quantities/python-quantities/issues/268 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ffc5590873a6e77ec2ef7577d8748acba1e5680f1f68bdce7114cd7010e046fb/python-quantities/python-quantities/issues/268 |
| og:image:alt | NumPy 2.2 made some changes to type annotations, which lead to errors when running mypy quantities. The release notes for NumPy 2.2.1 mention some problems with MyPy, and recommend using basedpyright. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | apdavison |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-quantities/python-quantities git https://github.com/python-quantities/python-quantities.git |
| octolytics-dimension-user_id | 222003 |
| octolytics-dimension-user_login | python-quantities |
| octolytics-dimension-repository_id | 560911 |
| octolytics-dimension-repository_nwo | python-quantities/python-quantities |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 560911 |
| octolytics-dimension-repository_network_root_nwo | python-quantities/python-quantities |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width