René's URL Explorer Experiment


Title: [MNT] Typing: Use Literal for set_loglevel by nrnavaneet · Pull Request #30302 · matplotlib/matplotlib · GitHub

Open Graph Title: [MNT] Typing: Use Literal for set_loglevel by nrnavaneet · Pull Request #30302 · matplotlib/matplotlib

X Title: [MNT] Typing: Use Literal for set_loglevel by nrnavaneet · Pull Request #30302 · matplotlib/matplotlib

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

Open Graph Description: This PR addresses part of #30257 by improving type safety and IDE support for set_loglevel. Changes in this PR: Introduced LogLevel as a TypeAlias in matplotlib.typing, using Literal to restrict a...

X Description: This PR addresses part of #30257 by improving type safety and IDE support for set_loglevel. Changes in this PR: Introduced LogLevel as a TypeAlias in matplotlib.typing, using Literal to restrict a...

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

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:a826e1c0-4a37-d2ae-9b76-b6bafd608b1c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB5A0:14F3B3:E67D50:139ED78:6A521B35
html-safe-nonced9fd45372e2fbd6354ce95aefd3af617a421be2f5791b4cc6bc21f63c7759cb4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUEwOjE0RjNCMzpFNjdENTA6MTM5RUQ3ODo2QTUyMUIzNSIsInZpc2l0b3JfaWQiOiIzMTY4NTMwOTgzODg1NjA5NzgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5139153be23dff56c0e2ac1aa3732a1b44e70da6a738c10f149cc12b98386aac
hovercard-subject-tagpull_request:2661792726
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/30302/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/909eede2f91a28395f272499ed0d133dba7fdb63fc4f393766aef4155af6b6bc/matplotlib/matplotlib/pull/30302
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/909eede2f91a28395f272499ed0d133dba7fdb63fc4f393766aef4155af6b6bc/matplotlib/matplotlib/pull/30302
og:image:altThis PR addresses part of #30257 by improving type safety and IDE support for set_loglevel. Changes in this PR: Introduced LogLevel as a TypeAlias in matplotlib.typing, using Literal to restrict a...
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/30302#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F30302
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%2F30302
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/30302
Reloadhttps://github.com/matplotlib/matplotlib/pull/30302
Reloadhttps://github.com/matplotlib/matplotlib/pull/30302
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
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
dstansbyhttps://github.com/dstansby
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
nrnavaneet:fix/literal-typing-setloglevelhttps://github.com/nrnavaneet/matplotlib/tree/fix/literal-typing-setloglevel
Conversationhttps://github.com/matplotlib/matplotlib/pull/30302
Commits1 (1)https://github.com/matplotlib/matplotlib/pull/30302/commits
Checkshttps://github.com/matplotlib/matplotlib/pull/30302/checks
Files changedhttps://github.com/matplotlib/matplotlib/pull/30302/files
[MNT] Typing: Use Literal for set_loglevel https://github.com/matplotlib/matplotlib/pull/30302#top
dstansbyhttps://github.com/dstansby
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
nrnavaneet:fix/literal-typing-setloglevelhttps://github.com/nrnavaneet/matplotlib/tree/fix/literal-typing-setloglevel
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 12, 2025https://github.com/matplotlib/matplotlib/pull/30302#issue-3225916099
#30257https://github.com/matplotlib/matplotlib/issues/30257
@ZPyrolinkhttps://github.com/ZPyrolink
#30261https://github.com/matplotlib/matplotlib/pull/30261
@ZPyrolinkhttps://github.com/ZPyrolink
#30275https://github.com/matplotlib/matplotlib/pull/30275
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/nrnavaneet
Add Literal-based LogLevel type alias and use it in set_loglevel for …https://github.com/matplotlib/matplotlib/pull/30302/commits/0555206d4793a6210ce0ef83ef98ce055a65f234
0555206https://github.com/matplotlib/matplotlib/pull/30302/commits/0555206d4793a6210ce0ef83ef98ce055a65f234
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
topic: pyplot API https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20pyplot%20API%22
Jul 12, 2025https://github.com/matplotlib/matplotlib/pull/30302#event-18602578838
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 12, 2025 https://github.com/matplotlib/matplotlib/pull/30302#ref-pullrequest-3202833778
[MNT] Use Literal for level parameter in set_loglevel (#30257) #30260 https://github.com/matplotlib/matplotlib/pull/30260
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 12, 2025https://github.com/matplotlib/matplotlib/pull/30302#issuecomment-3066250511
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/ZPyrolink
ZPyrolinkhttps://github.com/ZPyrolink
Jul 4, 2025 https://github.com/matplotlib/matplotlib/pull/30302#ref-issue-3200585245
[MNT] [TYPING]: Use of Literal #30257 https://github.com/matplotlib/matplotlib/issues/30257
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jul 14, 2025https://github.com/matplotlib/matplotlib/pull/30302#issuecomment-3068604973
https://private-user-images.githubusercontent.com/2836374/465933909-71050e65-ead8-4125-80d2-8bc1faee0c3a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM3NjYxMTMsIm5iZiI6MTc4Mzc2NTgxMywicGF0aCI6Ii8yODM2Mzc0LzQ2NTkzMzkwOS03MTA1MGU2NS1lYWQ4LTQxMjUtODBkMi04YmMxZmFlZTBjM2EucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDcxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA3MTFUMTAzMDEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjMwMjRmNDhlMGU2ZGE0ZDMyYzI2Y2ZhNGNiNzllNGRkNjFhN2FlZDQ1ZWQ4ODJmNDgwMzRkZGQ0MmZkYzEwNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.35i_K1bx0Etf8OQ0l7B98TSA1KIzTIVwlK41LTL3DIs
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jul 14, 2025 https://github.com/matplotlib/matplotlib/pull/30302#pullrequestreview-3015515711
View reviewed changes https://github.com/matplotlib/matplotlib/pull/30302/files/0555206d4793a6210ce0ef83ef98ce055a65f234
timhoffmhttps://github.com/timhoffm
https://github.com/matplotlib/matplotlib/pull/30302#pullrequestreview-3015515711
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
Jul 14, 2025https://github.com/matplotlib/matplotlib/pull/30302#issuecomment-3069575720
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
@timhoffmhttps://github.com/timhoffm
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jul 14, 2025 https://github.com/matplotlib/matplotlib/pull/30302#pullrequestreview-3016527280
View reviewed changes https://github.com/matplotlib/matplotlib/pull/30302/files
lib/matplotlib/__init__.pyihttps://github.com/matplotlib/matplotlib/pull/30302/files#diff-920237a02c3f54d2a8f6524cd5016498c09f0c6e5b94fe9953971a279f5ab3db
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
timhoffmhttps://github.com/timhoffm
July 17, 2025 06:36https://github.com/matplotlib/matplotlib/pull/30302#event-18673242563
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
force-pushedhttps://github.com/matplotlib/matplotlib/compare/1f29d69552a2f5cc35312f6dc46382204dc57079..0555206d4793a6210ce0ef83ef98ce055a65f234
1f29d69https://github.com/matplotlib/matplotlib/commit/1f29d69552a2f5cc35312f6dc46382204dc57079
0555206https://github.com/matplotlib/matplotlib/commit/0555206d4793a6210ce0ef83ef98ce055a65f234
Compare https://github.com/matplotlib/matplotlib/compare/1f29d69552a2f5cc35312f6dc46382204dc57079..0555206d4793a6210ce0ef83ef98ce055a65f234
July 17, 2025 07:35https://github.com/matplotlib/matplotlib/pull/30302#event-18674145553
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jul 17, 2025 https://github.com/matplotlib/matplotlib/pull/30302#pullrequestreview-3028627175
View reviewed changes https://github.com/matplotlib/matplotlib/pull/30302/files/0555206d4793a6210ce0ef83ef98ce055a65f234
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
timhoffmhttps://github.com/timhoffm
July 20, 2025 14:44https://github.com/matplotlib/matplotlib/pull/30302#event-18716919693
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
status: needs review https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20review%22
Jul 20, 2025https://github.com/matplotlib/matplotlib/pull/30302#event-18718000644
https://github.com/dstansby
dstansbyhttps://github.com/dstansby
Jul 20, 2025 https://github.com/matplotlib/matplotlib/pull/30302#pullrequestreview-3036174717
View reviewed changes https://github.com/matplotlib/matplotlib/pull/30302/files/0555206d4793a6210ce0ef83ef98ce055a65f234
https://github.com/dstansby
dstansbyhttps://github.com/dstansby
v3.11.0https://github.com/matplotlib/matplotlib/milestone/96
Jul 20, 2025https://github.com/matplotlib/matplotlib/pull/30302#event-18718073944
https://github.com/dstansby
dstansbyhttps://github.com/dstansby
53af231https://github.com/matplotlib/matplotlib/commit/53af23113cccbb93894c93accbe2ff4921364d5c
Jul 20, 2025https://github.com/matplotlib/matplotlib/pull/30302#event-18718074035
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/nrnavaneet
nrnavaneethttps://github.com/nrnavaneet
July 21, 2025 13:24https://github.com/matplotlib/matplotlib/pull/30302#event-18728994042
timhoffmhttps://github.com/timhoffm
Jul 21, 2025 https://github.com/matplotlib/matplotlib/pull/30302#ref-commit-2ea9371
https://github.com/timhoffm
MNT: Prefer capitalized logging levelshttps://github.com/timhoffm/matplotlib/commit/2ea9371733fdad796962c02932abc6abb66d6405
2ea9371https://github.com/timhoffm/matplotlib/commit/2ea9371733fdad796962c02932abc6abb66d6405
matplotlib#30302https://github.com/matplotlib/matplotlib/pull/30302
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jul 21, 2025 https://github.com/matplotlib/matplotlib/pull/30302#ref-pullrequest-3250036014
MNT: Prefer capitalized logging levels #30339 https://github.com/matplotlib/matplotlib/pull/30339
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
status: needs review https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20review%22
Jul 21, 2025https://github.com/matplotlib/matplotlib/pull/30302#event-18738150800
timhoffmhttps://github.com/timhoffm
Jul 22, 2025 https://github.com/matplotlib/matplotlib/pull/30302#ref-commit-fec45c6
https://github.com/timhoffm
https://github.com/tacaswell
MNT: Prefer capitalized logging levels (https://github.com/matplotlib/matplotlib/commit/fec45c62b50af39762583c5db806e59e05ea4b3a
#30339https://github.com/matplotlib/matplotlib/pull/30339
)https://github.com/matplotlib/matplotlib/commit/fec45c62b50af39762583c5db806e59e05ea4b3a
fec45c6https://github.com/matplotlib/matplotlib/commit/fec45c62b50af39762583c5db806e59e05ea4b3a
#30302https://github.com/matplotlib/matplotlib/pull/30302
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%2F30302
https://github.com/dstansby
dstansby https://github.com/dstansby
https://github.com/matplotlib/matplotlib/pull/30302/files/0555206d4793a6210ce0ef83ef98ce055a65f234
https://github.com/timhoffm
timhoffm https://github.com/timhoffm
topic: pyplot API https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20pyplot%20API%22
v3.11.0 https://github.com/matplotlib/matplotlib/milestone/96
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30302
https://github.com/nrnavaneet
https://github.com/timhoffm
https://github.com/dstansby
https://github.com/QuLogic
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.