René's URL Explorer Experiment


Title: Fix UnsetType truthiness narrowing in type stubs by overlorde · Pull Request #975 · msgspec/msgspec · GitHub

Open Graph Title: Fix UnsetType truthiness narrowing in type stubs by overlorde · Pull Request #975 · msgspec/msgspec

X Title: Fix UnsetType truthiness narrowing in type stubs by overlorde · Pull Request #975 · msgspec/msgspec

Description: A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML - Fix UnsetType truthiness narrowing in type stubs by overlorde · Pull Request #975 · msgspec/msgspec

Open Graph Description: Summary Add __bool__() -> Literal[False] to UnsetType stub so type checkers can narrow T | UnsetType via truthiness (if x:) Add typing test for truthiness-based narrowing Closes #916

X Description: Summary Add __bool__() -> Literal[False] to UnsetType stub so type checkers can narrow T | UnsetType via truthiness (if x:) Add typing test for truthiness-based narrowing Closes #916

Opengraph URL: https://github.com/msgspec/msgspec/pull/975

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:8779878f-be34-67bc-d895-68d1235292b1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA7E:18C74D:12C0016:1992378:6A4D6E4C
html-safe-nonce7ae2773c3230bfcb1d7e24057bcf145ad8e3f774648d56fb020aa487447215a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTdFOjE4Qzc0RDoxMkMwMDE2OjE5OTIzNzg6NkE0RDZFNEMiLCJ2aXNpdG9yX2lkIjoiMjEzMDQ2MDgzODk2MzUzOTUzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5c7f74769f58919f91f6ed78925d6f7c76e4379291ea06e14d7cac214c93624d
hovercard-subject-tagpull_request:3265779248
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/msgspec/msgspec/975/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9c7fd6d013ff00965f1281124fcfb179a39c0cbf992f959c172929bba42921b3/msgspec/msgspec/pull/975
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9c7fd6d013ff00965f1281124fcfb179a39c0cbf992f959c172929bba42921b3/msgspec/msgspec/pull/975
og:image:altSummary Add __bool__() -> Literal[False] to UnsetType stub so type checkers can narrow T | UnsetType via truthiness (if x:) Add typing test for truthiness-based narrowing Closes #916
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameoverlorde
hostnamegithub.com
expected-hostnamegithub.com
Nonec78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e
turbo-cache-controlno-cache
go-importgithub.com/msgspec/msgspec git https://github.com/msgspec/msgspec.git
octolytics-dimension-user_id287455683
octolytics-dimension-user_loginmsgspec
octolytics-dimension-repository_id332952543
octolytics-dimension-repository_nwomsgspec/msgspec
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id332952543
octolytics-dimension-repository_network_root_nwomsgspec/msgspec
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
release399fff412f48461d435721c009efc17ea44be72f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgspec/msgspec/pull/975#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgspec%2Fmsgspec%2Fpull%2F975
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fmsgspec%2Fmsgspec%2Fpull%2F975
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=msgspec%2Fmsgspec
Reloadhttps://github.com/msgspec/msgspec/pull/975
Reloadhttps://github.com/msgspec/msgspec/pull/975
Reloadhttps://github.com/msgspec/msgspec/pull/975
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
msgspec https://github.com/msgspec
msgspechttps://github.com/msgspec/msgspec
Notifications https://github.com/login?return_to=%2Fmsgspec%2Fmsgspec
Fork 156 https://github.com/login?return_to=%2Fmsgspec%2Fmsgspec
Star 3.9k https://github.com/login?return_to=%2Fmsgspec%2Fmsgspec
Code https://github.com/msgspec/msgspec
Issues 185 https://github.com/msgspec/msgspec/issues
Pull requests 22 https://github.com/msgspec/msgspec/pulls
Actions https://github.com/msgspec/msgspec/actions
Security and quality 0 https://github.com/msgspec/msgspec/security
Insights https://github.com/msgspec/msgspec/pulse
Code https://github.com/msgspec/msgspec
Issues https://github.com/msgspec/msgspec/issues
Pull requests https://github.com/msgspec/msgspec/pulls
Actions https://github.com/msgspec/msgspec/actions
Security and quality https://github.com/msgspec/msgspec/security
Insights https://github.com/msgspec/msgspec/pulse
jcristhttps://github.com/jcrist
msgspec:mainhttps://github.com/msgspec/msgspec/tree/main
overlorde:fix-unset-type-narrowinghttps://github.com/overlorde/msgspec/tree/fix-unset-type-narrowing
Conversationhttps://github.com/msgspec/msgspec/pull/975
Commits2 (2)https://github.com/msgspec/msgspec/pull/975/commits
Checkshttps://github.com/msgspec/msgspec/pull/975/checks
Files changedhttps://github.com/msgspec/msgspec/pull/975/files
Fix UnsetType truthiness narrowing in type stubshttps://github.com/msgspec/msgspec/pull/975#top
jcristhttps://github.com/jcrist
msgspec:mainhttps://github.com/msgspec/msgspec/tree/main
overlorde:fix-unset-type-narrowinghttps://github.com/overlorde/msgspec/tree/fix-unset-type-narrowing
https://github.com/overlorde
overlordehttps://github.com/overlorde
Feb 10, 2026https://github.com/msgspec/msgspec/pull/975#issue-3919761761
#916https://github.com/msgspec/msgspec/issues/916
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
https://github.com/overlorde
Fix UnsetType truthiness narrowing in type stubshttps://github.com/msgspec/msgspec/pull/975/commits/5da04f95280508de9edcff54130f2fccdefb1c89
5da04f9https://github.com/msgspec/msgspec/pull/975/commits/5da04f95280508de9edcff54130f2fccdefb1c89
msgspec#916https://github.com/msgspec/msgspec/issues/916
https://github.com/overlorde
overlordehttps://github.com/overlorde
Feb 10, 2026https://github.com/msgspec/msgspec/pull/975#issuecomment-3875762749
Fix logo in README for dark and light modes #969https://github.com/msgspec/msgspec/pull/969
fix DateTimeType docstring typo #970https://github.com/msgspec/msgspec/pull/970
Fix broken ravyn.dev link in docs #977https://github.com/msgspec/msgspec/pull/977
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
https://github.com/CharString
CharStringhttps://github.com/CharString
Mar 20, 2026 https://github.com/msgspec/msgspec/pull/975#ref-pullrequest-3592909603
Fix UnsetType type annotation (#916) #917 https://github.com/msgspec/msgspec/pull/917
https://github.com/CharString
CharStringhttps://github.com/CharString
Mar 20, 2026 https://github.com/msgspec/msgspec/pull/975#pullrequestreview-3980627527
View reviewed changes https://github.com/msgspec/msgspec/pull/975/files/79ec90445cb4673903266edfdb4f0a58404fe505
https://github.com/Siyet
Siyethttps://github.com/Siyet
Apr 8, 2026https://github.com/msgspec/msgspec/pull/975#issuecomment-4206125665
msgspec-arisehttps://github.com/Siyet/msgspec-arise
PR #33https://github.com/Siyet/msgspec-arise/pull/33
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
https://github.com/jcrist
Merge branch 'main' into fix-unset-type-narrowinghttps://github.com/msgspec/msgspec/pull/975/commits/79ec90445cb4673903266edfdb4f0a58404fe505
79ec904https://github.com/msgspec/msgspec/pull/975/commits/79ec90445cb4673903266edfdb4f0a58404fe505
https://github.com/jcrist
jcristhttps://github.com/jcrist
Apr 8, 2026 https://github.com/msgspec/msgspec/pull/975#pullrequestreview-4077269167
View reviewed changes https://github.com/msgspec/msgspec/pull/975/files/79ec90445cb4673903266edfdb4f0a58404fe505
jcristhttps://github.com/jcrist
https://github.com/msgspec/msgspec/pull/975#pullrequestreview-4077269167
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
https://github.com/jcrist
jcristhttps://github.com/jcrist
c01df28https://github.com/msgspec/msgspec/commit/c01df287e188f3149193f51e8801ff60f9847390
Apr 8, 2026https://github.com/msgspec/msgspec/pull/975#event-24306506957
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
https://github.com/jcrist
jcristhttps://github.com/jcrist
Apr 8, 2026 https://github.com/msgspec/msgspec/pull/975#ref-pullrequest-2857819688
Add bool dunder method for type def of UnsetType #816 https://github.com/msgspec/msgspec/pull/816
https://github.co/hiddenchars
https://github.com/msgspec/msgspec/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%2Fmsgspec%2Fmsgspec%2Fpull%2F975
https://github.com/jcrist
jcrist https://github.com/jcrist
https://github.com/msgspec/msgspec/pull/975/files/79ec90445cb4673903266edfdb4f0a58404fe505
https://github.com/CharString
CharString https://github.com/CharString
https://github.com/msgspec/msgspec/pull/975/files/79ec90445cb4673903266edfdb4f0a58404fe505
UnsetType union types lowering is incomplete https://github.com/msgspec/msgspec/issues/916
Please reload this pagehttps://github.com/msgspec/msgspec/pull/975
https://github.com/overlorde
https://github.com/Siyet
https://github.com/CharString
https://github.com/jcrist
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.