| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:170864f6-547c-14ef-45af-70394579c9eb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A464:22C726:8C20A1:BADC86:6A5199E6 |
| html-safe-nonce | 30defe05fd69a7de86a305af3139b90551999b5100ea940e871ff33fc90ec664 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDY0OjIyQzcyNjo4QzIwQTE6QkFEQzg2OjZBNTE5OUU2IiwidmlzaXRvcl9pZCI6Ijg3MTM3ODc1MDkxMzY1Mjk4OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f35664f10c62aac77fdc0e62c33a2d10d322c29976c4d82d42512e0d67b3874e |
| hovercard-subject-tag | pull_request:2671994625 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/matplotlib/matplotlib/30321/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/669026934d12501a2d42250f61361f3e13e4a42968e1eb444cb352ffc7efa863/matplotlib/matplotlib/pull/30321 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/669026934d12501a2d42250f61361f3e13e4a42968e1eb444cb352ffc7efa863/matplotlib/matplotlib/pull/30321 |
| og:image:alt | Summary
Updates the type annotation of Axes.get_legend() to reflect that the method may return None, improving accuracy and static type checking support.
Updates
Fixed Axes.set(..., None) to skip ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nrnavaneet |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 |
| Skip to content | https://github.com/matplotlib/matplotlib/pull/30321#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F30321 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F30321 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib |
| Reload | https://github.com/matplotlib/matplotlib/pull/30321 |
| Reload | https://github.com/matplotlib/matplotlib/pull/30321 |
| Reload | https://github.com/matplotlib/matplotlib/pull/30321 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
|
matplotlib
| https://github.com/matplotlib |
| matplotlib | https://github.com/matplotlib/matplotlib |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
|
Notifications
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Fork
8.4k
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Star
23k
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Code
| https://github.com/matplotlib/matplotlib |
|
Issues
1.1k
| https://github.com/matplotlib/matplotlib/issues |
|
Pull requests
409
| https://github.com/matplotlib/matplotlib/pulls |
|
Actions
| https://github.com/matplotlib/matplotlib/actions |
|
Projects
| https://github.com/matplotlib/matplotlib/projects |
|
Wiki
| https://github.com/matplotlib/matplotlib/wiki |
|
Security and quality
0
| https://github.com/matplotlib/matplotlib/security |
|
Insights
| https://github.com/matplotlib/matplotlib/pulse |
|
Code
| https://github.com/matplotlib/matplotlib |
|
Issues
| https://github.com/matplotlib/matplotlib/issues |
|
Pull requests
| https://github.com/matplotlib/matplotlib/pulls |
|
Actions
| https://github.com/matplotlib/matplotlib/actions |
|
Projects
| https://github.com/matplotlib/matplotlib/projects |
|
Wiki
| https://github.com/matplotlib/matplotlib/wiki |
|
Security and quality
| https://github.com/matplotlib/matplotlib/security |
|
Insights
| https://github.com/matplotlib/matplotlib/pulse |
| timhoffm | https://github.com/timhoffm |
| matplotlib:main | https://github.com/matplotlib/matplotlib/tree/main |
| nrnavaneet:feature-branch | https://github.com/nrnavaneet/matplotlib/tree/feature-branch |
| Conversation | https://github.com/matplotlib/matplotlib/pull/30321 |
| Commits4 (4) | https://github.com/matplotlib/matplotlib/pull/30321/commits |
| Checks | https://github.com/matplotlib/matplotlib/pull/30321/checks |
| Files changed | https://github.com/matplotlib/matplotlib/pull/30321/files |
| Fix type annotation for Axes.get_legend() to include None | https://github.com/matplotlib/matplotlib/pull/30321#top |
| timhoffm | https://github.com/timhoffm |
| matplotlib:main | https://github.com/matplotlib/matplotlib/tree/main |
| nrnavaneet:feature-branch | https://github.com/nrnavaneet/matplotlib/tree/feature-branch |
|
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 16, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issue-3237379855 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| #30318 | https://github.com/matplotlib/matplotlib/issues/30318 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
|
| https://github.com/nrnavaneet |
| Added None to get_legend() type annotation | https://github.com/matplotlib/matplotlib/pull/30321/commits/d0eed0e9effc24275b6298d6502b3a24f37ed201 |
| d0eed0e | https://github.com/matplotlib/matplotlib/pull/30321/commits/d0eed0e9effc24275b6298d6502b3a24f37ed201 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
topic: axes
| https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20axes%22 |
| Jul 16, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#event-18667859079 |
|
| https://github.com/nrnavaneet |
| Added an edge case test | https://github.com/matplotlib/matplotlib/pull/30321/commits/b520f86775a08dee5d046db20fc3af619ad02a6d |
| b520f86 | https://github.com/matplotlib/matplotlib/pull/30321/commits/b520f86775a08dee5d046db20fc3af619ad02a6d |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 16, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3081068562 |
| @timhoffm | https://github.com/timhoffm |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/rcomer |
| rcomer | https://github.com/rcomer |
| Jul 16, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3081298536 |
| @nrnavaneet | https://github.com/nrnavaneet |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 16, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3081422479 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
|
| https://github.com/nrnavaneet |
| Test changes | https://github.com/matplotlib/matplotlib/pull/30321/commits/24e9946d3c9cc26acc25a2e5bd8eb25afeaff96b |
| 24e9946 | https://github.com/matplotlib/matplotlib/pull/30321/commits/24e9946d3c9cc26acc25a2e5bd8eb25afeaff96b |
| https://github.com/rcomer |
| rcomer | https://github.com/rcomer |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084438083 |
| https://matplotlib.org/devdocs/devel/contribute.html#restrictions-on-generative-ai-usage | https://matplotlib.org/devdocs/devel/contribute.html#restrictions-on-generative-ai-usage |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084542472 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084545126 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/dstansby |
| dstansby | https://github.com/dstansby |
|
Jul 17, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#pullrequestreview-3030165786 |
|
View reviewed changes
| https://github.com/matplotlib/matplotlib/pull/30321/files/24e9946d3c9cc26acc25a2e5bd8eb25afeaff96b |
| dstansby | https://github.com/dstansby |
| https://github.com/matplotlib/matplotlib/pull/30321#pullrequestreview-3030165786 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084668320 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
|
| https://github.com/nrnavaneet |
| Removed the test | https://github.com/matplotlib/matplotlib/pull/30321/commits/3070ac86705f42e8be7b777f18d2eb10ec777800 |
| 3070ac8 | https://github.com/matplotlib/matplotlib/pull/30321/commits/3070ac86705f42e8be7b777f18d2eb10ec777800 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084696372 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| dstansby | https://github.com/dstansby |
| July 17, 2025 16:46 | https://github.com/matplotlib/matplotlib/pull/30321#event-18684138669 |
| https://github.com/rcomer |
| rcomer | https://github.com/rcomer |
|
topic: typing
| https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%22 |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#event-18685589802 |
| https://github.com/rcomer |
| rcomer | https://github.com/rcomer |
|
Jul 17, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#pullrequestreview-3030572546 |
|
View reviewed changes
| https://github.com/matplotlib/matplotlib/pull/30321/files/3070ac86705f42e8be7b777f18d2eb10ec777800 |
| https://github.com/rcomer |
| rcomer | https://github.com/rcomer |
| v3.10.4 | https://github.com/matplotlib/matplotlib/milestone/102 |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#event-18685637167 |
| https://github.com/timhoffm |
| timhoffm | https://github.com/timhoffm |
|
Jul 17, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#pullrequestreview-3030620439 |
|
View reviewed changes
| https://github.com/matplotlib/matplotlib/pull/30321/files/3070ac86705f42e8be7b777f18d2eb10ec777800 |
| https://github.com/timhoffm |
| timhoffm | https://github.com/timhoffm |
| 2b75c9e | https://github.com/matplotlib/matplotlib/commit/2b75c9e5754b80631c6b3fed80df6d4d38a13935 |
| Jul 17, 2025 | https://github.com/matplotlib/matplotlib/pull/30321#event-18685902869 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
| meeseeksmachine | https://github.com/meeseeksmachine |
|
Jul 17, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#ref-commit-0139aca |
|
| https://github.com/timhoffm |
|
| https://github.com/meeseeksmachine |
| Backport PR | https://github.com/meeseeksmachine/matplotlib/commit/0139aca5c61d3fba57aa2cf8de3e89bed0139372 |
| matplotlib#30321 | https://github.com/matplotlib/matplotlib/pull/30321 |
| : Fix type annotation for Axes.get_legend… | https://github.com/meeseeksmachine/matplotlib/commit/0139aca5c61d3fba57aa2cf8de3e89bed0139372 |
| 0139aca | https://github.com/meeseeksmachine/matplotlib/commit/0139aca5c61d3fba57aa2cf8de3e89bed0139372 |
| https://github.com/meeseeksmachine |
| meeseeksmachine | https://github.com/meeseeksmachine |
|
Jul 17, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#ref-pullrequest-3240548017 |
|
Backport PR #30321 on branch v3.10.x (Fix type annotation for Axes.get_legend() to include None)
#30326
| https://github.com/matplotlib/matplotlib/pull/30326 |
| https://github.com/nrnavaneet |
| nrnavaneet | https://github.com/nrnavaneet |
| July 17, 2025 18:50 | https://github.com/matplotlib/matplotlib/pull/30321#event-18685994016 |
| dstansby | https://github.com/dstansby |
|
Jul 17, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#ref-commit-8076615 |
|
| https://github.com/dstansby |
| Merge pull request | https://github.com/matplotlib/matplotlib/commit/8076615fc25c14391b461bf536f71d5116fab1d2 |
| #30326 | https://github.com/matplotlib/matplotlib/pull/30326 |
| from meeseeksmachine/auto-backport-of-pr-30… | https://github.com/matplotlib/matplotlib/commit/8076615fc25c14391b461bf536f71d5116fab1d2 |
| 8076615 | https://github.com/matplotlib/matplotlib/commit/8076615fc25c14391b461bf536f71d5116fab1d2 |
| #30321 | https://github.com/matplotlib/matplotlib/pull/30321 |
| https://github.com/ksunden |
| ksunden | https://github.com/ksunden |
|
Aug 7, 2025
| https://github.com/matplotlib/matplotlib/pull/30321#ref-pullrequest-3301456931 |
|
merge up v3.10.5
#30401
| https://github.com/matplotlib/matplotlib/pull/30401 |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F30321 |
|
| https://github.com/timhoffm |
|
timhoffm
| https://github.com/timhoffm |
|
| https://github.com/matplotlib/matplotlib/pull/30321/files/3070ac86705f42e8be7b777f18d2eb10ec777800 |
|
| https://github.com/rcomer |
|
rcomer
| https://github.com/rcomer |
|
| https://github.com/matplotlib/matplotlib/pull/30321/files/3070ac86705f42e8be7b777f18d2eb10ec777800 |
|
| https://github.com/dstansby |
|
dstansby
| https://github.com/dstansby |
|
topic: axes
| https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20axes%22 |
|
topic: typing
| https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%22 |
|
v3.10.5
| https://github.com/matplotlib/matplotlib/milestone/102 |
|
[Bug]: type annotation of Axes.get_legend() misses None
| https://github.com/matplotlib/matplotlib/issues/30318 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/30321 |
|
| https://github.com/nrnavaneet |
|
| https://github.com/rcomer |
|
| https://github.com/timhoffm |
|
| https://github.com/dstansby |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |