René's URL Explorer Experiment


Title: Add __new__ to old ast.Constant aliases by srittau · Pull Request #14397 · python/typeshed · GitHub

Open Graph Title: Add __new__ to old ast.Constant aliases by srittau · Pull Request #14397 · python/typeshed

X Title: Add __new__ to old ast.Constant aliases by srittau · Pull Request #14397 · python/typeshed

Description: This aligns the old constant classes closer to the actual implementation. It's not perfect, as it doesn't replicate the __instancecheck__ and doesn't replicate the fact that theoretical sub-classes of the old constant classes are still possible and don't get replaced with Constant.

Open Graph Description: This aligns the old constant classes closer to the actual implementation. It's not perfect, as it doesn't replicate the __instancecheck__ and doesn't replicate the fact that theoretical...

X Description: This aligns the old constant classes closer to the actual implementation. It's not perfect, as it doesn't replicate the __instancecheck__ and doesn't replicate the fact that...

Opengraph URL: https://github.com/python/typeshed/pull/14397

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:e94a3d6e-01d1-bcee-b1c4-034b544f3ebc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEBE8:59847:3AB797:4F52A1:6B002A93
html-safe-nonce484496e41a7dfb8785eac347ea2e7f7161f094051445dd0b045a9d982540eb01
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkU4OjU5ODQ3OjNBQjc5Nzo0RjUyQTE6NkIwMDJBOTMiLCJ2aXNpdG9yX2lkIjoiNTY3OTExNTgyMjg0NTQwNTg0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9bb4a13d7f6bf93a1377d2fd9ee5e8cc9defaee643ec2c46df4899be2b52e637
hovercard-subject-tagpull_request:2658633826
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/typeshed/pull/14397/files
twitter:imagehttps://avatars.githubusercontent.com/u/52799?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/52799?s=400&v=4
og:image:altThis aligns the old constant classes closer to the actual implementation. It's not perfect, as it doesn't replicate the __instancecheck__ and doesn't replicate the fact that theoretical...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/14397/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14397%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%2Ftypeshed%2Fpull%2F14397%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%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/14397/files
Reloadhttps://github.com/python/typeshed/pull/14397/files
Reloadhttps://github.com/python/typeshed/pull/14397/files
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
srittau:deprecated-asthttps://github.com/srittau/typeshed/tree/deprecated-ast
Conversation 9 https://github.com/python/typeshed/pull/14397
Commits 16 https://github.com/python/typeshed/pull/14397/commits
Checks 0 https://github.com/python/typeshed/pull/14397/checks
Files changed https://github.com/python/typeshed/pull/14397/files
Please reload this pagehttps://github.com/python/typeshed/pull/14397/files
Add __new__ to old ast.Constant aliases https://github.com/python/typeshed/pull/14397/files#top
Show all changes 16 commits https://github.com/python/typeshed/pull/14397/files
61af05e Add __new__ to old ast.Constant aliases srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/61af05e9f49046f5725b5bd282ace86c55adae62
2c52b43 Add type: ignore srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/2c52b43c4f5feb4f98071b9314535e6aa10e5d92
b813e7e Remove allowlist entries srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/b813e7e3bce3ebc6f3a1cbddbd2c50bcd02b62da
3c59c0c Remove fields from deprecated classes srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/3c59c0ce8cf56245a0fcb52a9362c253a559b591
503df8a Annotate __new__ arguments srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/503df8a03c55307af9ce9d1d6f5b6764558f058c
9656228 Add ast.Ellipsis.__new__ to allowlist srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/96562289c2acd772fa877c272cb92fc120245bc3
4948960 Revert "Add ast.Ellipsis.__new__ to allowlist" srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/4948960878d44b7b5362ef4376357423cfb2446b
0f22d0c Broaden type ignores srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/0f22d0c5d8395876c719227eefb65308cfab4cf9
076515a Reapply "Add ast.Ellipsis.__new__ to allowlist" srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/076515a64c10d8ddf36df9a2f8b33ccafed1f48b
bdb9adc pyright ignore srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/bdb9adcf48a132e2b525e0b0533d06bd60df4809
e4d190a fix srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/e4d190a1229ac9e834dd106f356f603ab0002187
479e748 Fix a linter warning srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/479e748c169631a40b93ece3e6895c49e708abcc
aa36683 Remove 'deprecated' wording srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/aa366835154baaaf10db067bfe32d34edcea56f6
b1eca02 Even shorter deprecation message srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/b1eca026e7c37f7c47702d6cf977e360b2e29f9b
4c518cc Add setters srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/4c518cc403c9bf2172d179ba5cf9cb605bead115
fac6f9a fix srittau Jul 11, 2025 https://github.com/python/typeshed/pull/14397/commits/fac6f9a361fd7b034266b2b5e52288258eaf8c0d
Clear filters https://github.com/python/typeshed/pull/14397/files
Please reload this pagehttps://github.com/python/typeshed/pull/14397/files
Please reload this pagehttps://github.com/python/typeshed/pull/14397/files
py310.txt https://github.com/python/typeshed/pull/14397/files#diff-909930298a34ed7d285f53e0815289ffcfe31591441b2f5c1c725c014b3cbe10
py311.txt https://github.com/python/typeshed/pull/14397/files#diff-5d008a68c55bb3f10b76540a2d7eff56d4ad0d602c1427a3dcb9d4a21678f0b7
py312.txt https://github.com/python/typeshed/pull/14397/files#diff-17adc738dd56b7e54c770b5302eb733fe1fb973bac799ed5f3b7bc72315b7f49
py313.txt https://github.com/python/typeshed/pull/14397/files#diff-5bc711d6a711180bd617b4145298ad45c87b681686e927441d4431ffb36eaad9
py39.txt https://github.com/python/typeshed/pull/14397/files#diff-05383dfde41f42515d39171ac01de7c38508ba68895177cf1852c6e4973967da
ast.pyi https://github.com/python/typeshed/pull/14397/files#diff-0e71f3f9388dacaa5c8cd33b77bfae95a52060b5748b3d97b60650cd3ccfb855
stdlib/@tests/stubtest_allowlists/py310.txthttps://github.com/python/typeshed/pull/14397/files#diff-909930298a34ed7d285f53e0815289ffcfe31591441b2f5c1c725c014b3cbe10
View file https://github.com/srittau/typeshed/blob/fac6f9a361fd7b034266b2b5e52288258eaf8c0d/stdlib/%40tests/stubtest_allowlists/py310.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/14397/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/14397/files#diff-909930298a34ed7d285f53e0815289ffcfe31591441b2f5c1c725c014b3cbe10
https://github.com/python/typeshed/pull/14397/files#diff-909930298a34ed7d285f53e0815289ffcfe31591441b2f5c1c725c014b3cbe10
stdlib/@tests/stubtest_allowlists/py311.txthttps://github.com/python/typeshed/pull/14397/files#diff-5d008a68c55bb3f10b76540a2d7eff56d4ad0d602c1427a3dcb9d4a21678f0b7
View file https://github.com/srittau/typeshed/blob/fac6f9a361fd7b034266b2b5e52288258eaf8c0d/stdlib/%40tests/stubtest_allowlists/py311.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/14397/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/14397/files#diff-5d008a68c55bb3f10b76540a2d7eff56d4ad0d602c1427a3dcb9d4a21678f0b7
https://github.com/python/typeshed/pull/14397/files#diff-5d008a68c55bb3f10b76540a2d7eff56d4ad0d602c1427a3dcb9d4a21678f0b7
stdlib/@tests/stubtest_allowlists/py312.txthttps://github.com/python/typeshed/pull/14397/files#diff-17adc738dd56b7e54c770b5302eb733fe1fb973bac799ed5f3b7bc72315b7f49
View file https://github.com/srittau/typeshed/blob/fac6f9a361fd7b034266b2b5e52288258eaf8c0d/stdlib/%40tests/stubtest_allowlists/py312.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/14397/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/14397/files#diff-17adc738dd56b7e54c770b5302eb733fe1fb973bac799ed5f3b7bc72315b7f49
https://github.com/python/typeshed/pull/14397/files#diff-17adc738dd56b7e54c770b5302eb733fe1fb973bac799ed5f3b7bc72315b7f49
stdlib/@tests/stubtest_allowlists/py313.txthttps://github.com/python/typeshed/pull/14397/files#diff-5bc711d6a711180bd617b4145298ad45c87b681686e927441d4431ffb36eaad9
View file https://github.com/srittau/typeshed/blob/fac6f9a361fd7b034266b2b5e52288258eaf8c0d/stdlib/%40tests/stubtest_allowlists/py313.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/14397/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/14397/files#diff-5bc711d6a711180bd617b4145298ad45c87b681686e927441d4431ffb36eaad9
https://github.com/python/typeshed/pull/14397/files#diff-5bc711d6a711180bd617b4145298ad45c87b681686e927441d4431ffb36eaad9
stdlib/@tests/stubtest_allowlists/py39.txthttps://github.com/python/typeshed/pull/14397/files#diff-05383dfde41f42515d39171ac01de7c38508ba68895177cf1852c6e4973967da
View file https://github.com/srittau/typeshed/blob/fac6f9a361fd7b034266b2b5e52288258eaf8c0d/stdlib/%40tests/stubtest_allowlists/py39.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/14397/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/14397/files#diff-05383dfde41f42515d39171ac01de7c38508ba68895177cf1852c6e4973967da
https://github.com/python/typeshed/pull/14397/files#diff-05383dfde41f42515d39171ac01de7c38508ba68895177cf1852c6e4973967da
stdlib/ast.pyihttps://github.com/python/typeshed/pull/14397/files#diff-0e71f3f9388dacaa5c8cd33b77bfae95a52060b5748b3d97b60650cd3ccfb855
View file https://github.com/srittau/typeshed/blob/fac6f9a361fd7b034266b2b5e52288258eaf8c0d/stdlib/ast.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/14397/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/14397/files#diff-0e71f3f9388dacaa5c8cd33b77bfae95a52060b5748b3d97b60650cd3ccfb855
https://github.com/python/typeshed/pull/14397/files#diff-0e71f3f9388dacaa5c8cd33b77bfae95a52060b5748b3d97b60650cd3ccfb855
https://github.com/python/typeshed/pull/14397/files#diff-0e71f3f9388dacaa5c8cd33b77bfae95a52060b5748b3d97b60650cd3ccfb855
https://github.com/python/typeshed/pull/14397/files#diff-0e71f3f9388dacaa5c8cd33b77bfae95a52060b5748b3d97b60650cd3ccfb855
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.