Title: [Bug]: Mypy stubtest failure on disjoint_base · Issue #30551 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Mypy stubtest failure on disjoint_base · Issue #30551 · matplotlib/matplotlib
X Title: [Bug]: Mypy stubtest failure on disjoint_base · Issue #30551 · matplotlib/matplotlib
Description: Bug summary The recently released MyPy 18.1 supports PEP 800 – Disjoint bases in the type system. stubtest now flags the following errors in CI (e.g. in 0a744f0) Actual outcome matplotlib.dviread.Text is a disjoint base at runtime, but i...
Open Graph Description: Bug summary The recently released MyPy 18.1 supports PEP 800 – Disjoint bases in the type system. stubtest now flags the following errors in CI (e.g. in 0a744f0) Actual outcome matplotlib.dviread.T...
X Description: Bug summary The recently released MyPy 18.1 supports PEP 800 – Disjoint bases in the type system. stubtest now flags the following errors in CI (e.g. in 0a744f0) Actual outcome matplotlib.dviread.T...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30551
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Mypy stubtest failure on disjoint_base","articleBody":"### Bug summary\n\nThe recently released MyPy 18.1 supports [PEP 800 – Disjoint bases in the type system](https://peps.python.org/pep-0800/). stubtest now flags the following errors in CI (e.g. in https://github.com/matplotlib/matplotlib/pull/30543/commits/0a744f0ba180dca0a73bf351db89796a9854c7d6)\n\n### Actual outcome\n\n```\nmatplotlib.dviread.Text is a disjoint base at runtime, but isn't marked with @disjoint_base in the stub\n\u003cTypeInfo matplotlib.dviread.Text\u003e\nRuntime: in file /home/runner/work/matplotlib/matplotlib/lib/matplotlib/dviread.py:69\ndef (x, y, font, glyph, width)\n\nRaw Output:\nerror: matplotlib.dviread.Text is a disjoint base at runtime, but isn't marked with @disjoint_base in the stub\nStub: in file /home/runner/work/matplotlib/matplotlib/lib/matplotlib/dviread.pyi:31\n\u003cTypeInfo matplotlib.dviread.Text\u003e\nRuntime: in file /home/runner/work/matplotlib/matplotlib/lib/matplotlib/dviread.py:69\ndef (x, y, font, glyph, width)\n```\n\n\n```\nmatplotlib.container.Container is a disjoint base at runtime, but isn't marked with @disjoint_base in the stub\n\u003cTypeInfo matplotlib.container.Container\u003e\nRuntime: in file /home/runner/work/matplotlib/matplotlib/lib/matplotlib/container.py:5\ndef (*args, **kwargs)\n\nRaw Output:\nerror: matplotlib.container.Container is a disjoint base at runtime, but isn't marked with @disjoint_base in the stub\nStub: in file /home/runner/work/matplotlib/matplotlib/lib/matplotlib/container.pyi:10\n\u003cTypeInfo matplotlib.container.Container\u003e\nRuntime: in file /home/runner/work/matplotlib/matplotlib/lib/matplotlib/container.py:5\ndef (*args, **kwargs)\n```\n\n### Expected outcome\n\nNo error.\n\n","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2025-09-12T08:52:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/30551/matplotlib/issues/30551"}
| 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:de1fae44-a6b9-4a92-0336-4d3c4293870f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 831A:10B7D9:A6972C:E14B47:6A5201DA |
| html-safe-nonce | 4cf9a74d8fe88baa0a355092114c10f1e34c6cdfe075a183fbdf06be3bb2ef1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzFBOjEwQjdEOTpBNjk3MkM6RTE0QjQ3OjZBNTIwMURBIiwidmlzaXRvcl9pZCI6IjU4MjE1NDA3NjUxODUyMTI4OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0da6d835bf65222b2ed5780099da6b38e8738650a13abc8cfcd963590ba6cbe |
| hovercard-subject-tag | issue:3409522439 |
| 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/30551/issue_layout |
| twitter:image | https://opengraph.githubassets.com/955ab6c8eb269228da02d4d3485be8b62c0e27470c7e8cd44b4137d7a22cb0f6/matplotlib/matplotlib/issues/30551 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/955ab6c8eb269228da02d4d3485be8b62c0e27470c7e8cd44b4137d7a22cb0f6/matplotlib/matplotlib/issues/30551 |
| og:image:alt | Bug summary The recently released MyPy 18.1 supports PEP 800 – Disjoint bases in the type system. stubtest now flags the following errors in CI (e.g. in 0a744f0) Actual outcome matplotlib.dviread.T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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