René's URL Explorer Experiment


Title: Fix type annotation for Axes.get_legend() to include None by nrnavaneet · Pull Request #30321 · matplotlib/matplotlib · GitHub

Open Graph Title: Fix type annotation for Axes.get_legend() to include None by nrnavaneet · Pull Request #30321 · matplotlib/matplotlib

X Title: Fix type annotation for Axes.get_legend() to include None by nrnavaneet · Pull Request #30321 · matplotlib/matplotlib

Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

Open Graph Description: 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 ...

X Description: 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 ...

Opengraph URL: https://github.com/matplotlib/matplotlib/pull/30321

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:170864f6-547c-14ef-45af-70394579c9eb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA464:22C726:8C20A1:BADC86:6A5199E6
html-safe-nonce30defe05fd69a7de86a305af3139b90551999b5100ea940e871ff33fc90ec664
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDY0OjIyQzcyNjo4QzIwQTE6QkFEQzg2OjZBNTE5OUU2IiwidmlzaXRvcl9pZCI6Ijg3MTM3ODc1MDkxMzY1Mjk4OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf35664f10c62aac77fdc0e62c33a2d10d322c29976c4d82d42512e0d67b3874e
hovercard-subject-tagpull_request:2671994625
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/matplotlib/matplotlib/30321/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/669026934d12501a2d42250f61361f3e13e4a42968e1eb444cb352ffc7efa863/matplotlib/matplotlib/pull/30321
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/669026934d12501a2d42250f61361f3e13e4a42968e1eb444cb352ffc7efa863/matplotlib/matplotlib/pull/30321
og:image:altSummary 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenrnavaneet
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/matplotlib/matplotlib/pull/30321
Reloadhttps://github.com/matplotlib/matplotlib/pull/30321
Reloadhttps://github.com/matplotlib/matplotlib/pull/30321
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://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
timhoffmhttps://github.com/timhoffm
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
nrnavaneet:feature-branchhttps://github.com/nrnavaneet/matplotlib/tree/feature-branch
Conversationhttps://github.com/matplotlib/matplotlib/pull/30321
Commits4 (4)https://github.com/matplotlib/matplotlib/pull/30321/commits
Checkshttps://github.com/matplotlib/matplotlib/pull/30321/checks
Files changedhttps://github.com/matplotlib/matplotlib/pull/30321/files
Fix type annotation for Axes.get_legend() to include Nonehttps://github.com/matplotlib/matplotlib/pull/30321#top
timhoffmhttps://github.com/timhoffm
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
nrnavaneet:feature-branchhttps://github.com/nrnavaneet/matplotlib/tree/feature-branch
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 16, 2025https://github.com/matplotlib/matplotlib/pull/30321#issue-3237379855
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
#30318https://github.com/matplotlib/matplotlib/issues/30318
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
Added None to get_legend() type annotationhttps://github.com/matplotlib/matplotlib/pull/30321/commits/d0eed0e9effc24275b6298d6502b3a24f37ed201
d0eed0ehttps://github.com/matplotlib/matplotlib/pull/30321/commits/d0eed0e9effc24275b6298d6502b3a24f37ed201
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
topic: axes https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20axes%22
Jul 16, 2025https://github.com/matplotlib/matplotlib/pull/30321#event-18667859079
https://github.com/nrnavaneet
Added an edge case testhttps://github.com/matplotlib/matplotlib/pull/30321/commits/b520f86775a08dee5d046db20fc3af619ad02a6d
b520f86https://github.com/matplotlib/matplotlib/pull/30321/commits/b520f86775a08dee5d046db20fc3af619ad02a6d
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 16, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3081068562
@timhoffmhttps://github.com/timhoffm
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/rcomer
rcomerhttps://github.com/rcomer
Jul 16, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3081298536
@nrnavaneethttps://github.com/nrnavaneet
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 16, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3081422479
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
Test changeshttps://github.com/matplotlib/matplotlib/pull/30321/commits/24e9946d3c9cc26acc25a2e5bd8eb25afeaff96b
24e9946https://github.com/matplotlib/matplotlib/pull/30321/commits/24e9946d3c9cc26acc25a2e5bd8eb25afeaff96b
https://github.com/rcomer
rcomerhttps://github.com/rcomer
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084438083
https://matplotlib.org/devdocs/devel/contribute.html#restrictions-on-generative-ai-usagehttps://matplotlib.org/devdocs/devel/contribute.html#restrictions-on-generative-ai-usage
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084542472
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084545126
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/dstansby
dstansbyhttps://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
dstansbyhttps://github.com/dstansby
https://github.com/matplotlib/matplotlib/pull/30321#pullrequestreview-3030165786
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084668320
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
Removed the testhttps://github.com/matplotlib/matplotlib/pull/30321/commits/3070ac86705f42e8be7b777f18d2eb10ec777800
3070ac8https://github.com/matplotlib/matplotlib/pull/30321/commits/3070ac86705f42e8be7b777f18d2eb10ec777800
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#issuecomment-3084696372
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
dstansbyhttps://github.com/dstansby
July 17, 2025 16:46https://github.com/matplotlib/matplotlib/pull/30321#event-18684138669
https://github.com/rcomer
rcomerhttps://github.com/rcomer
topic: typing https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%22
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#event-18685589802
https://github.com/rcomer
rcomerhttps://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
rcomerhttps://github.com/rcomer
v3.10.4https://github.com/matplotlib/matplotlib/milestone/102
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#event-18685637167
https://github.com/timhoffm
timhoffmhttps://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
timhoffmhttps://github.com/timhoffm
2b75c9ehttps://github.com/matplotlib/matplotlib/commit/2b75c9e5754b80631c6b3fed80df6d4d38a13935
Jul 17, 2025https://github.com/matplotlib/matplotlib/pull/30321#event-18685902869
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30321
meeseeksmachinehttps://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 PRhttps://github.com/meeseeksmachine/matplotlib/commit/0139aca5c61d3fba57aa2cf8de3e89bed0139372
matplotlib#30321https://github.com/matplotlib/matplotlib/pull/30321
: Fix type annotation for Axes.get_legend…https://github.com/meeseeksmachine/matplotlib/commit/0139aca5c61d3fba57aa2cf8de3e89bed0139372
0139acahttps://github.com/meeseeksmachine/matplotlib/commit/0139aca5c61d3fba57aa2cf8de3e89bed0139372
https://github.com/meeseeksmachine
meeseeksmachinehttps://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
nrnavaneethttps://github.com/nrnavaneet
July 17, 2025 18:50https://github.com/matplotlib/matplotlib/pull/30321#event-18685994016
dstansbyhttps://github.com/dstansby
Jul 17, 2025 https://github.com/matplotlib/matplotlib/pull/30321#ref-commit-8076615
https://github.com/dstansby
Merge pull requesthttps://github.com/matplotlib/matplotlib/commit/8076615fc25c14391b461bf536f71d5116fab1d2
#30326https://github.com/matplotlib/matplotlib/pull/30326
from meeseeksmachine/auto-backport-of-pr-30…https://github.com/matplotlib/matplotlib/commit/8076615fc25c14391b461bf536f71d5116fab1d2
8076615https://github.com/matplotlib/matplotlib/commit/8076615fc25c14391b461bf536f71d5116fab1d2
#30321https://github.com/matplotlib/matplotlib/pull/30321
https://github.com/ksunden
ksundenhttps://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 freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://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
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.