René's URL Explorer Experiment


Title: Update specification for directives for sys.implementation and sys.platform checks. by Josverl · Pull Request #2173 · python/typing · GitHub

Open Graph Title: Update specification for directives for sys.implementation and sys.platform checks. by Josverl · Pull Request #2173 · python/typing

X Title: Update specification for directives for sys.implementation and sys.platform checks. by Josverl · Pull Request #2173 · python/typing

Description: This PR expands and clarifies the specification for version, platform, and Python implementation checks: Adds checks for sys.implementation.name and sys.implementation.version. Specifies supported comparisons, including in / not in with literal tuples, sets, and lists, and sys.platform.startswith(). Covers combining checks with and, or, and not. Distinguishes required forms from optional extensions. Adds examples and guidance on target configuration and defaults. References : https://discuss.python.org/t/proposal-to-improve-support-for-other-python-platforms-in-the-typing-specification/91877/1 #1953

Open Graph Description: This PR expands and clarifies the specification for version, platform, and Python implementation checks: Adds checks for sys.implementation.name and sys.implementation.version. Specifies supported...

X Description: This PR expands and clarifies the specification for version, platform, and Python implementation checks: Adds checks for sys.implementation.name and sys.implementation.version. Specifies supported...

Opengraph URL: https://github.com/python/typing/pull/2173

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:26b08849-68c4-2660-0c02-03ccb09aafbd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CC8:2DB972:12FEDBB:181BC19:6AFF982D
html-safe-noncee9640142aed7df535c6f1db4831c3f38543bc6f294802bdb9bdcc977981a83ed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0M4OjJEQjk3MjoxMkZFREJCOjE4MUJDMTk6NkFGRjk4MkQiLCJ2aXNpdG9yX2lkIjoiNDIwMzcyNzg1NTgyNzI2MTQ4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac146605bc026b5bd34f15021b3aeff66877c5a8641ebc23476686347269b58a70
hovercard-subject-tagpull_request:3277297529
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typing/pull/2173/files
twitter:imagehttps://avatars.githubusercontent.com/u/981654?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/981654?s=400&v=4
og:image:altThis PR expands and clarifies the specification for version, platform, and Python implementation checks: Adds checks for sys.implementation.name and sys.implementation.version. Specifies supported...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2c75d045e8c84b51e2ac680086a6dd1eeaf2bc15b82137d22ee5106835d6256c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release525b66d22c4f7e6bb8b62934bec198964f7e8b93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typing/pull/2173/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F2173%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F2173%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftyping
Reloadhttps://github.com/python/typing/pull/2173/files
Reloadhttps://github.com/python/typing/pull/2173/files
Reloadhttps://github.com/python/typing/pull/2173/files
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
Josverlhttps://github.com/Josverl
python:mainhttps://github.com/python/typing/tree/main
Josverl:specs/sys.implementation.namehttps://github.com/Josverl/typing/tree/specs/sys.implementation.name
Conversation 192 https://github.com/python/typing/pull/2173
Commits 5 https://github.com/python/typing/pull/2173/commits
Checks 0 https://github.com/python/typing/pull/2173/checks
Files changed 38 https://github.com/python/typing/pull/2173/files
Update specification for directives for sys.implementation and sys.platform checks. https://github.com/python/typing/pull/2173/files#top
Show all changes 5 commits https://github.com/python/typing/pull/2173/files
b8ff527 Update specification for directives for sys.implementation and sys.pl… Josverl Oct 30, 2026 https://github.com/python/typing/pull/2173/commits/b8ff5275158cec1a45adea38cd16319a661feaf8
54b4d7b Add additional version or platform conformance tests. Josverl Oct 30, 2026 https://github.com/python/typing/pull/2173/commits/54b4d7b75e34403b434b59d753e4710b9c9a8235
b558039 Document version and platform checking conformance approach. Josverl Oct 30, 2026 https://github.com/python/typing/pull/2173/commits/b558039d5599e476f224bcd3f0ff7dac2ce64c8d
c0d41d3 Conformance: Add conformance results for implementation and platform … Josverl Oct 23, 2026 https://github.com/python/typing/pull/2173/commits/c0d41d39ed8af328d37fdc0517bb0484b7dccee8
0c223b1 Update conformance results.html Josverl Oct 30, 2026 https://github.com/python/typing/pull/2173/commits/0c223b1767d3b9d052da93b1343dc97339f9a5c6
Clear filters https://github.com/python/typing/pull/2173/files
Please reload this pagehttps://github.com/python/typing/pull/2173/files
Please reload this pagehttps://github.com/python/typing/pull/2173/files
README.md https://github.com/python/typing/pull/2173/files#diff-6fc0c945c88d6e3456671b0a85adefda3a0b7b7569d85744002293fdff50609a
directives_implementation_name.toml https://github.com/python/typing/pull/2173/files#diff-ba0d51901bc94c03f4e2bd42329747433c2a5b1f9e61de63cb8d9558efefac9b
directives_implementation_version.toml https://github.com/python/typing/pull/2173/files#diff-774948b9a2082f6911f40e74cabf048b4bd9f527557316e2fe6965d570ed6db2
directives_platform_checks.toml https://github.com/python/typing/pull/2173/files#diff-4a322563a3beb204a54df6d8d4bdc280bff4023601052d7f265b86415a5b1240
directives_version_platform.toml https://github.com/python/typing/pull/2173/files#diff-9f55474f249b87efef608fb75313483f7cb17bfc40dc132ebedbfc1d80717a66
directives_version_platform_boolean.toml https://github.com/python/typing/pull/2173/files#diff-e380b60937fbd7db77d2be118dc26cc03b78c88559f4ba5c996d55d0cd3c9f92
directives_implementation_name.toml https://github.com/python/typing/pull/2173/files#diff-9ef2263e699343e34c7d3123f0ca1589da5ddf16cd2eab9998f6232661b94c00
directives_implementation_version.toml https://github.com/python/typing/pull/2173/files#diff-ee384693184b0f5f3b745f2ffcbae65e8ccacc184decac04d576e6e838a863f2
directives_platform_checks.toml https://github.com/python/typing/pull/2173/files#diff-89524556ee1586c1ef46355996115f2583b03e2beeec8450416b3c880caa1301
directives_version_platform.toml https://github.com/python/typing/pull/2173/files#diff-703bf0b384b7acac21d101e7c533d56987b43e50d2bef4a5730cbab965bfd665
directives_version_platform_boolean.toml https://github.com/python/typing/pull/2173/files#diff-6f26eef35eeb45fecad257edde1da10c5a871ad86633d4874f4eda1b1913fc42
directives_implementation_name.toml https://github.com/python/typing/pull/2173/files#diff-5230ad67ffaa2518dad92af8dc32d0f5098d9052e742d3ac2726bf121c876d09
directives_implementation_version.toml https://github.com/python/typing/pull/2173/files#diff-b46ff87ec3acdb2d7fd0e514afc8816383cd4eb16477ffbde3904ec9da4d6cdc
directives_platform_checks.toml https://github.com/python/typing/pull/2173/files#diff-681a1e59f403dfbbe46d0d8539350af804601a0c85a278bb1d034a1caef07113
directives_version_platform.toml https://github.com/python/typing/pull/2173/files#diff-58d0e0065228e0962108b7854ac2c02e5373afe9b170b5e00360b6f94e724239
directives_version_platform_boolean.toml https://github.com/python/typing/pull/2173/files#diff-8f1106c54b5f96864472316e90d68cf129f4864342602ad2c7bcb64da4dd2e68
directives_implementation_name.toml https://github.com/python/typing/pull/2173/files#diff-230387876c6a34acf80e6e95213d6e121204607dce9ef111afe0455340d59490
directives_implementation_version.toml https://github.com/python/typing/pull/2173/files#diff-8359e1e6ec12cfc39e9498ecf3617677cf35c489fcd25a04ba76f9c29c634ba6
directives_platform_checks.toml https://github.com/python/typing/pull/2173/files#diff-4d54dfa5892ec2b2bf2d97227827477f79218e9adc98c4cedde7921a51cf8967
directives_version_platform.toml https://github.com/python/typing/pull/2173/files#diff-c211e25785a2d0b612dbb58e7604dcea22307673a26ac5c509d9f7731c823468
directives_version_platform_boolean.toml https://github.com/python/typing/pull/2173/files#diff-99435583667983dc0351fbb0c26096f870d5da25591cd472d2bba007f0769188
results.html https://github.com/python/typing/pull/2173/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
directives_implementation_name.toml https://github.com/python/typing/pull/2173/files#diff-536e3129f3791dd45adeb84baecc23865b7b4fb19c4ecf7550b01497aedb6be0
directives_implementation_version.toml https://github.com/python/typing/pull/2173/files#diff-4b660d63bcf008666ec9dc6f43d3e23731d91081de49da8e603048b64cfa7cbf
directives_platform_checks.toml https://github.com/python/typing/pull/2173/files#diff-40e73dbe1a745e550f1dc6a3b367e595ac64c25a5ac67e6f7d5e204ff5f1c2ad
directives_version_platform.toml https://github.com/python/typing/pull/2173/files#diff-1dc709353b97e0045e97bd1ec60a0a746d15ada0213a816564fe0f41f23be92c
directives_version_platform_boolean.toml https://github.com/python/typing/pull/2173/files#diff-e3e98409867c7d52f31b403d80b86938e3344029c664d7623e300d47d332d980
directives_implementation_name.toml https://github.com/python/typing/pull/2173/files#diff-97729d6c4a0a875548c2208192a750ed1e769ca45cca35e66909009fe88e9cd3
directives_implementation_version.toml https://github.com/python/typing/pull/2173/files#diff-0c00fc016440457f9178c0f1c7acf716b4903a53b36e810267138f91eacbe6e5
directives_platform_checks.toml https://github.com/python/typing/pull/2173/files#diff-1ea2c18944e9c541560ab7b73ac55ec7885fab2ec6273df66eab801a29d86d50
directives_version_platform.toml https://github.com/python/typing/pull/2173/files#diff-d653089fdaf95031285dfb1c8d1e31b6d2140ef7b557a84c45bd9ee06a5ade67
directives_version_platform_boolean.toml https://github.com/python/typing/pull/2173/files#diff-54494ee212b72a9f9d0663f886212231f1a40f6fa8d6c726821e19054ba718c3
directives_implementation_name.py https://github.com/python/typing/pull/2173/files#diff-49ba84f79d245d0207c6e6a0caa3eabb87181c6f829725851a338ac50c54e931
directives_implementation_version.py https://github.com/python/typing/pull/2173/files#diff-c96010801d4dd90ccbc42186551bb12e4b562c1bbca11612c0ac0f4249cd5093
directives_platform_checks.py https://github.com/python/typing/pull/2173/files#diff-c4224282d3cd9d83d65b748207097d4f50c998d8f38398463df8380f4d64c5c0
directives_version_platform.py https://github.com/python/typing/pull/2173/files#diff-0cecc01ffa5e508ab482d3a3ab3b1e4763f7b85fc8159b4d08a9206363dfdcfc
directives_version_platform_boolean.py https://github.com/python/typing/pull/2173/files#diff-2d4fe290f6f1de0883c8776144959367d7de8760473c07a562040164f7ea7b5e
directives.rst https://github.com/python/typing/pull/2173/files#diff-6aaa869bbce63d5ee37202ab4b18343572956318968cfcd5c3ef8cd499a003aa
conformance/README.mdhttps://github.com/python/typing/pull/2173/files#diff-6fc0c945c88d6e3456671b0a85adefda3a0b7b7569d85744002293fdff50609a
View file https://github.com/python/typing/blob/0c223b1767d3b9d052da93b1343dc97339f9a5c6/conformance/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2173/{{ revealButtonHref }}
https://github.com/python/typing/pull/2173/files#diff-6fc0c945c88d6e3456671b0a85adefda3a0b7b7569d85744002293fdff50609a
https://github.com/python/typing/pull/2173/files#diff-6fc0c945c88d6e3456671b0a85adefda3a0b7b7569d85744002293fdff50609a
conformance/results/mypy/directives_implementation_name.tomlhttps://github.com/python/typing/pull/2173/files#diff-ba0d51901bc94c03f4e2bd42329747433c2a5b1f9e61de63cb8d9558efefac9b
View file https://github.com/python/typing/blob/0c223b1767d3b9d052da93b1343dc97339f9a5c6/conformance/results/mypy/directives_implementation_name.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2173/{{ revealButtonHref }}
conformance/results/mypy/directives_implementation_version.tomlhttps://github.com/python/typing/pull/2173/files#diff-774948b9a2082f6911f40e74cabf048b4bd9f527557316e2fe6965d570ed6db2
View file https://github.com/python/typing/blob/0c223b1767d3b9d052da93b1343dc97339f9a5c6/conformance/results/mypy/directives_implementation_version.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2173/{{ revealButtonHref }}
conformance/results/mypy/directives_platform_checks.tomlhttps://github.com/python/typing/pull/2173/files#diff-4a322563a3beb204a54df6d8d4bdc280bff4023601052d7f265b86415a5b1240
View file https://github.com/python/typing/blob/0c223b1767d3b9d052da93b1343dc97339f9a5c6/conformance/results/mypy/directives_platform_checks.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2173/{{ revealButtonHref }}
conformance/results/mypy/directives_version_platform.tomlhttps://github.com/python/typing/pull/2173/files#diff-9f55474f249b87efef608fb75313483f7cb17bfc40dc132ebedbfc1d80717a66
View file https://github.com/python/typing/blob/0c223b1767d3b9d052da93b1343dc97339f9a5c6/conformance/results/mypy/directives_version_platform.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2173/{{ revealButtonHref }}
https://github.com/python/typing/pull/2173/files#diff-9f55474f249b87efef608fb75313483f7cb17bfc40dc132ebedbfc1d80717a66
https://github.com/python/typing/pull/2173/files#diff-9f55474f249b87efef608fb75313483f7cb17bfc40dc132ebedbfc1d80717a66
Please reload this pagehttps://github.com/python/typing/pull/2173/files
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.