Title: [ENH]: Add types for `fig_kw` argument in `subplots` · Issue #31003 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Add types for `fig_kw` argument in `subplots` · Issue #31003 · matplotlib/matplotlib
X Title: [ENH]: Add types for `fig_kw` argument in `subplots` · Issue #31003 · matplotlib/matplotlib
Description: Problem In pandas-stubs, we are looking to support pyright strict typing checks. Because the argument fig_kw is untyped in the declaration of subplots in pyplot.py, pyright will report reportUnknownMemberType with strict type checking. S...
Open Graph Description: Problem In pandas-stubs, we are looking to support pyright strict typing checks. Because the argument fig_kw is untyped in the declaration of subplots in pyplot.py, pyright will report reportUnknow...
X Description: Problem In pandas-stubs, we are looking to support pyright strict typing checks. Because the argument fig_kw is untyped in the declaration of subplots in pyplot.py, pyright will report reportUnknow...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31003
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Add types for `fig_kw` argument in `subplots`","articleBody":"### Problem\n\nIn `pandas-stubs`, we are looking to support pyright `strict` typing checks. \n\nBecause the argument `fig_kw` is untyped in the declaration of `subplots` in `pyplot.py`, pyright will report `reportUnknownMemberType` with strict type checking.\n\nSee https://github.com/pandas-dev/pandas-stubs/pull/1639/changes/de0a4176d4704d81cebd44cd201382340d0c2fbb..7985c9b0b8ec0dedca3fae36a1e539a386bdee27#r2709077432 for relevant comment\n\n\n\n### Proposed solution\n\nAnnotate `**fig_kw` as `Any` in the various `subplots` declarations.\n\n\n","author":{"url":"https://github.com/Dr-Irv","@type":"Person","name":"Dr-Irv"},"datePublished":"2026-01-20T19:39:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/31003/matplotlib/issues/31003"}
| 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:07cb0407-6fc3-2e0c-db58-ddd947aa95af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9826:124766:3474A:47F8E:6A52D7CF |
| html-safe-nonce | 2e6e5a27554366df0290ab9dc708bb48690b91982d70c18c087a85aa4d66e835 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODI2OjEyNDc2NjozNDc0QTo0N0Y4RTo2QTUyRDdDRiIsInZpc2l0b3JfaWQiOiI2NjEwNjEwMDI2NTAyNjA4ODQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d2f79a4ff068ede0a4b74c708426809ac752e3af9a76e5957a26139aaa162a6e |
| hovercard-subject-tag | issue:3835158556 |
| 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/31003/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0835f7c95095082b8c31f343ec178fa1fd80106d97fc002ad238bae90080a3a8/matplotlib/matplotlib/issues/31003 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0835f7c95095082b8c31f343ec178fa1fd80106d97fc002ad238bae90080a3a8/matplotlib/matplotlib/issues/31003 |
| og:image:alt | Problem In pandas-stubs, we are looking to support pyright strict typing checks. Because the argument fig_kw is untyped in the declaration of subplots in pyplot.py, pyright will report reportUnknow... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Dr-Irv |
| 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