René's URL Explorer Experiment


Title: Type alias type by youknowone · Pull Request #6011 · RustPython/RustPython · GitHub

Open Graph Title: Type alias type by youknowone · Pull Request #6011 · RustPython/RustPython

X Title: Type alias type by youknowone · Pull Request #6011 · RustPython/RustPython

Description: Summary by CodeRabbit New Features Added a formal constructor for type aliases that enforces argument validation and provides clear error messages for incorrect usage. Introduced custom construction behavior for AST nodes enabling proper initialization with optional dictionaries. Bug Fixes Improved argument validation for object construction to better match expected Python behavior and error reporting. Refactor Unified and clarified string representation logic for certain types.

Open Graph Description: Summary by CodeRabbit New Features Added a formal constructor for type aliases that enforces argument validation and provides clear error messages for incorrect usage. Introduced custom construct...

X Description: Summary by CodeRabbit New Features Added a formal constructor for type aliases that enforces argument validation and provides clear error messages for incorrect usage. Introduced custom construct...

Opengraph URL: https://github.com/RustPython/RustPython/pull/6011

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:96acf0ea-8687-dd8a-721e-ccc98f6bb239
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id98F2:D7362:A37F94:DD02B8:696ABDEE
html-safe-nonce159cd1e8b36b572b772abd5ad7eeab44534d296c5122be23d29b009e256a2236
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEYyOkQ3MzYyOkEzN0Y5NDpERDAyQjg6Njk2QUJERUUiLCJ2aXNpdG9yX2lkIjoiNTg4NjEyODc4ODMwOTk4MjcwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccc8977afeba9ab72ecefaac9133b544f2bda14741a23f16edd1dcf2d343f6953
hovercard-subject-tagpull_request:2680006782
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/RustPython/RustPython/pull/6011/files
twitter:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
og:image:altSummary by CodeRabbit New Features Added a formal constructor for type aliases that enforces argument validation and provides clear error messages for incorrect usage. Introduced custom construct...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/6011/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F6011%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2FRustPython%2FRustPython%2Fpull%2F6011%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/6011/files
Reloadhttps://github.com/RustPython/RustPython/pull/6011/files
Reloadhttps://github.com/RustPython/RustPython/pull/6011/files
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.4k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 21.7k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 278 https://github.com/RustPython/RustPython/issues
Pull requests 92 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects 0 https://github.com/RustPython/RustPython/projects
Wiki https://github.com/RustPython/RustPython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/RustPython/RustPython/security
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6011/files
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Wiki https://github.com/RustPython/RustPython/wiki
Security https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:type-alias-typehttps://github.com/youknowone/RustPython/tree/type-alias-type
Conversation 1 https://github.com/RustPython/RustPython/pull/6011
Commits 5 https://github.com/RustPython/RustPython/pull/6011/commits
Checks 11 https://github.com/RustPython/RustPython/pull/6011/checks
Files changed https://github.com/RustPython/RustPython/pull/6011/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6011/files
Type alias type https://github.com/RustPython/RustPython/pull/6011/files#top
Show all changes 5 commits https://github.com/RustPython/RustPython/pull/6011/files
e326a01 Constructor for TypeAliasType youknowone Jul 20, 2025 https://github.com/RustPython/RustPython/pull/6011/commits/e326a011cb858a09ca26421f85596338825ac8bb
50a6a83 Fix PyBaseObject::py_new youknowone Jul 20, 2025 https://github.com/RustPython/RustPython/pull/6011/commits/50a6a832abceef8408b5ee8d155ad259cc2f4d37
2c7692b Representable for TypeAliasType youknowone Jul 20, 2025 https://github.com/RustPython/RustPython/pull/6011/commits/2c7692ba6e378678fd47e524a44266e5c1912ffe
607212e Fix tests youknowone Jul 20, 2025 https://github.com/RustPython/RustPython/pull/6011/commits/607212ec1a712fdc18484666a8d307a233e1549a
09c340a Fix AST youknowone Jul 21, 2025 https://github.com/RustPython/RustPython/pull/6011/commits/09c340af09fb5b648eda421b994ecea88776c1cd
Clear filters https://github.com/RustPython/RustPython/pull/6011/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6011/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6011/files
test_ast.py https://github.com/RustPython/RustPython/pull/6011/files#diff-a6d9c051aefcdf8f9606dd2ecc5a172a5716e2b38eff96097fc2b96528ed19d0
test_collections.py https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
test_exception_group.py https://github.com/RustPython/RustPython/pull/6011/files#diff-daf015269bd8812406b17c8ae9e1bdd0b27d6bb5133a2bd333e13a7066875f3e
test_typing.py https://github.com/RustPython/RustPython/pull/6011/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
object.rs https://github.com/RustPython/RustPython/pull/6011/files#diff-232fb470c9155c996a5003c090315bb00310543ff5d370be57408d4668e94cd8
python.rs https://github.com/RustPython/RustPython/pull/6011/files#diff-e5047df72134d89c8609af9d9ced3c58c5fde7d5b9b193e4e09e2909ef0f498e
typing.rs https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
Lib/test/test_ast/test_ast.pyhttps://github.com/RustPython/RustPython/pull/6011/files#diff-a6d9c051aefcdf8f9606dd2ecc5a172a5716e2b38eff96097fc2b96528ed19d0
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/Lib/test/test_ast/test_ast.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-a6d9c051aefcdf8f9606dd2ecc5a172a5716e2b38eff96097fc2b96528ed19d0
https://github.com/RustPython/RustPython/pull/6011/files#diff-a6d9c051aefcdf8f9606dd2ecc5a172a5716e2b38eff96097fc2b96528ed19d0
Lib/test/test_collections.pyhttps://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/Lib/test/test_collections.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
https://github.com/RustPython/RustPython/pull/6011/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784
Lib/test/test_exception_group.pyhttps://github.com/RustPython/RustPython/pull/6011/files#diff-daf015269bd8812406b17c8ae9e1bdd0b27d6bb5133a2bd333e13a7066875f3e
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/Lib/test/test_exception_group.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-daf015269bd8812406b17c8ae9e1bdd0b27d6bb5133a2bd333e13a7066875f3e
https://github.com/RustPython/RustPython/pull/6011/files#diff-daf015269bd8812406b17c8ae9e1bdd0b27d6bb5133a2bd333e13a7066875f3e
Lib/test/test_typing.pyhttps://github.com/RustPython/RustPython/pull/6011/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/Lib/test/test_typing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/RustPython/RustPython/pull/6011/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/RustPython/RustPython/pull/6011/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/RustPython/RustPython/pull/6011/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
vm/src/builtins/object.rshttps://github.com/RustPython/RustPython/pull/6011/files#diff-232fb470c9155c996a5003c090315bb00310543ff5d370be57408d4668e94cd8
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/vm/src/builtins/object.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-232fb470c9155c996a5003c090315bb00310543ff5d370be57408d4668e94cd8
https://github.com/RustPython/RustPython/pull/6011/files#diff-232fb470c9155c996a5003c090315bb00310543ff5d370be57408d4668e94cd8
vm/src/stdlib/ast/python.rshttps://github.com/RustPython/RustPython/pull/6011/files#diff-e5047df72134d89c8609af9d9ced3c58c5fde7d5b9b193e4e09e2909ef0f498e
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/vm/src/stdlib/ast/python.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-e5047df72134d89c8609af9d9ced3c58c5fde7d5b9b193e4e09e2909ef0f498e
https://github.com/RustPython/RustPython/pull/6011/files#diff-e5047df72134d89c8609af9d9ced3c58c5fde7d5b9b193e4e09e2909ef0f498e
https://github.com/RustPython/RustPython/pull/6011/files#diff-e5047df72134d89c8609af9d9ced3c58c5fde7d5b9b193e4e09e2909ef0f498e
https://github.com/RustPython/RustPython/pull/6011/files#diff-e5047df72134d89c8609af9d9ced3c58c5fde7d5b9b193e4e09e2909ef0f498e
vm/src/stdlib/typing.rshttps://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
View file https://github.com/youknowone/RustPython/blob/09c340af09fb5b648eda421b994ecea88776c1cd/vm/src/stdlib/typing.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/6011/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
https://github.com/RustPython/RustPython/pull/6011/files#diff-05a713a5bba38bea71083f232ae1c6b4ae50356428cfc28ae82cfa7ef80b523a
Please reload this pagehttps://github.com/RustPython/RustPython/pull/6011/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.