René's URL Explorer Experiment


Title: Fix type object signature when both __new__ and __init__ present by msullivan · Pull Request #5642 · python/mypy · GitHub

Open Graph Title: Fix type object signature when both __new__ and __init__ present by msullivan · Pull Request #5642 · python/mypy

X Title: Fix type object signature when both __new__ and __init__ present by msullivan · Pull Request #5642 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: Currently mypy will prefer __init__ to __new__ for determining the signature of a type object if there exists any __init__ other than object's. Instead, prefer the closest definition in the MRO...

X Description: Currently mypy will prefer __init__ to __new__ for determining the signature of a type object if there exists any __init__ other than object's. Instead, prefer the closest definition in the...

Opengraph URL: https://github.com/python/mypy/pull/5642

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/_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:5297de29-3c1a-e3c6-9a48-1ee3c05b142b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC520:396A8E:1F80A2B:29DB308:6B004BEE
html-safe-nonce94ace0b1459e213cf3922e624d3e6f44812906c976d2e893d3d543210b6adfda
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTIwOjM5NkE4RToxRjgwQTJCOjI5REIzMDg6NkIwMDRCRUUiLCJ2aXNpdG9yX2lkIjoiNDcyMDcxODE0MTYwMzIwNDA3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaced48b2ca515fab9186231deff7b5973d94bd657f3ea5f5eb7843ae7d46ffb293
hovercard-subject-tagpull_request:216729500
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/python/mypy/5642/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c9e965e381502b581d338877af576d0b06d57a74f377429606ffc3d1737a3995/python/mypy/pull/5642
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c9e965e381502b581d338877af576d0b06d57a74f377429606ffc3d1737a3995/python/mypy/pull/5642
og:image:altCurrently mypy will prefer __init__ to __new__ for determining the signature of a type object if there exists any __init__ other than object's. Instead, prefer the closest definition in the MRO...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemsullivan
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-cache
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/5642#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F5642
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%2Fmypy%2Fpull%2F5642
Sign uphttps://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=python%2Fmypy
Reloadhttps://github.com/python/mypy/pull/5642
Reloadhttps://github.com/python/mypy/pull/5642
Reloadhttps://github.com/python/mypy/pull/5642
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests546 (546)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
msullivanhttps://github.com/msullivan
masterhttps://github.com/python/mypy/tree/master
new_over_inithttps://github.com/python/mypy/tree/new_over_init
Conversationhttps://github.com/python/mypy/pull/5642
Commits7 (7)https://github.com/python/mypy/pull/5642/commits
Checkshttps://github.com/python/mypy/pull/5642/checks
Files changedhttps://github.com/python/mypy/pull/5642/files
Fix type object signature when both __new__ and __init__ presenthttps://github.com/python/mypy/pull/5642#top
msullivanhttps://github.com/msullivan
masterhttps://github.com/python/mypy/tree/master
new_over_inithttps://github.com/python/mypy/tree/new_over_init
https://github.com/msullivan
msullivanhttps://github.com/msullivan
Sep 19, 2018https://github.com/python/mypy/pull/5642#issue-361866207
#1435https://github.com/python/mypy/issues/1435
Please reload this pagehttps://github.com/python/mypy/pull/5642
https://github.com/msullivan
Fix type object signature when both __new__ and __init__ presenthttps://github.com/python/mypy/pull/5642/commits/b06d60a6428af7d5195ee1882f9d2c6f6bfd8324
b06d60ahttps://github.com/python/mypy/pull/5642/commits/b06d60a6428af7d5195ee1882f9d2c6f6bfd8324
#1435https://github.com/python/mypy/issues/1435
https://github.com/msullivan
msullivanhttps://github.com/msullivan
gvanrossumhttps://github.com/gvanrossum
ilevkivskyihttps://github.com/ilevkivskyi
September 19, 2018 18:11https://github.com/python/mypy/pull/5642#event-1855772698
https://github.com/msullivan
msullivanhttps://github.com/msullivan
Sep 19, 2018 https://github.com/python/mypy/pull/5642#ref-pullrequest-361880929
Make NamedTuple provide __new__ instead of __init__ #5643 https://github.com/python/mypy/pull/5643
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 19, 2018 https://github.com/python/mypy/pull/5642#pullrequestreview-157002281
View reviewed changes https://github.com/python/mypy/pull/5642/files/b06d60a6428af7d5195ee1882f9d2c6f6bfd8324
gvanrossumhttps://github.com/gvanrossum
https://github.com/python/mypy/pull/5642#pullrequestreview-157002281
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/5642
test-data/unit/check-classes.testhttps://github.com/python/mypy/pull/5642/files/b06d60a6428af7d5195ee1882f9d2c6f6bfd8324#diff-1c26dc582ed5f36723414080dfb646bc71cf20736b73ae1ccff9b90a5d3befaf
gvanrossumhttps://github.com/gvanrossum
Sep 19, 2018https://github.com/python/mypy/pull/5642#discussion_r218948233
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/5642
msullivanhttps://github.com/msullivan
Sep 19, 2018https://github.com/python/mypy/pull/5642#discussion_r218966625
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/5642
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 19, 2018 https://github.com/python/mypy/pull/5642#pullrequestreview-157049639
View reviewed changes https://github.com/python/mypy/pull/5642/files/b06d60a6428af7d5195ee1882f9d2c6f6bfd8324
gvanrossumhttps://github.com/gvanrossum
https://github.com/python/mypy/pull/5642#pullrequestreview-157049639
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/5642
msullivanhttps://github.com/msullivan
September 19, 2018 15:41https://github.com/python/mypy/pull/5642#commits-pushed-67dd369
https://github.com/msullivan
Merge branch 'master' into new_over_inithttps://github.com/python/mypy/pull/5642/commits/67dd369884ab5e8c40822d8714aea672b1d5afa6
67dd369https://github.com/python/mypy/pull/5642/commits/67dd369884ab5e8c40822d8714aea672b1d5afa6
https://github.com/msullivan
tweak the testhttps://github.com/python/mypy/pull/5642/commits/162e7e7fdf3090898086d49b21690769c7cbc5e9
162e7e7https://github.com/python/mypy/pull/5642/commits/162e7e7fdf3090898086d49b21690769c7cbc5e9
https://github.com/msullivan
msullivanhttps://github.com/msullivan
Sep 19, 2018 https://github.com/python/mypy/pull/5642#ref-issue-361955755
Prefer __new__ over __init__ for determining callable type of a class #5647 https://github.com/python/mypy/issues/5647
https://github.com/msullivan
add a commenthttps://github.com/python/mypy/pull/5642/commits/ef0cfc364066d56cd9c81edb088971b72bab5fe2
ef0cfc3https://github.com/python/mypy/pull/5642/commits/ef0cfc364066d56cd9c81edb088971b72bab5fe2
Check consistency of __new__ and __init__ #5648 https://github.com/python/mypy/issues/5648
Type check signature of __new__ #1019 https://github.com/python/mypy/issues/1019
msullivanhttps://github.com/msullivan
September 19, 2018 16:03https://github.com/python/mypy/pull/5642#commits-pushed-39797b8
https://github.com/msullivan
oopshttps://github.com/python/mypy/pull/5642/commits/39797b874b17e243beb5b647e3a9da8ebbb3b068
39797b8https://github.com/python/mypy/pull/5642/commits/39797b874b17e243beb5b647e3a9da8ebbb3b068
https://github.com/msullivan
Merge branch 'master' into new_over_inithttps://github.com/python/mypy/pull/5642/commits/6bb958d78a712a52f50b8e3c9f0f395ab0936914
6bb958dhttps://github.com/python/mypy/pull/5642/commits/6bb958d78a712a52f50b8e3c9f0f395ab0936914
https://github.com/msullivan
oopshttps://github.com/python/mypy/pull/5642/commits/23ce6212e26ea165324bd8997770e30eb4eedc37
23ce621https://github.com/python/mypy/pull/5642/commits/23ce6212e26ea165324bd8997770e30eb4eedc37
https://github.com/msullivan
msullivanhttps://github.com/msullivan
6e6d672https://github.com/python/mypy/commit/6e6d672484c7568f99d60b61e218c752241f98b2
Sep 20, 2018https://github.com/python/mypy/pull/5642#event-1858741313
https://github.com/msullivan
msullivanhttps://github.com/msullivan
September 20, 2018 20:49https://github.com/python/mypy/pull/5642#event-1858741430
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2024 https://github.com/python/mypy/pull/5642#ref-commit-ce89220
https://github.com/hauntsaninja
Fix __new__ and __init__ precedencehttps://github.com/hauntsaninja/mypy/commit/ce892207d46e367fd4d170878681bbe128a2ae68
ce89220https://github.com/hauntsaninja/mypy/commit/ce892207d46e367fd4d170878681bbe128a2ae68
python#5647https://github.com/python/mypy/issues/5647
python#5642https://github.com/python/mypy/pull/5642
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2024 https://github.com/python/mypy/pull/5642#ref-pullrequest-2631015067
Improve __new__ and __init__ precedence #18093 https://github.com/python/mypy/pull/18093
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2024 https://github.com/python/mypy/pull/5642#ref-commit-5a40f11
https://github.com/hauntsaninja
Fix __new__ and __init__ precedencehttps://github.com/hauntsaninja/mypy/commit/5a40f11e6b0139394f47d18a77750bd485a48da6
5a40f11https://github.com/hauntsaninja/mypy/commit/5a40f11e6b0139394f47d18a77750bd485a48da6
python#5647https://github.com/python/mypy/issues/5647
python#5642https://github.com/python/mypy/pull/5642
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2024 https://github.com/python/mypy/pull/5642#ref-commit-ee93b0b
https://github.com/hauntsaninja
Fix __new__ and __init__ precedencehttps://github.com/hauntsaninja/mypy/commit/ee93b0b4c284d35d834789d356391cb8d4d6e2d2
ee93b0bhttps://github.com/hauntsaninja/mypy/commit/ee93b0b4c284d35d834789d356391cb8d4d6e2d2
python#5647https://github.com/python/mypy/issues/5647
python#5642https://github.com/python/mypy/pull/5642
hauntsaninjahttps://github.com/hauntsaninja
Dec 27, 2024 https://github.com/python/mypy/pull/5642#ref-commit-137dd74
https://github.com/hauntsaninja
Fix __new__ and __init__ precedencehttps://github.com/hauntsaninja/mypy/commit/137dd7419c8d5364cee7ee86721ef5cf1e782481
137dd74https://github.com/hauntsaninja/mypy/commit/137dd7419c8d5364cee7ee86721ef5cf1e782481
python#5647https://github.com/python/mypy/issues/5647
python#5642https://github.com/python/mypy/pull/5642
https://github.co/hiddenchars
https://github.com/python/mypy/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%2Fpython%2Fmypy%2Fpull%2F5642
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
https://github.com/python/mypy/pull/5642/files/b06d60a6428af7d5195ee1882f9d2c6f6bfd8324
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/5642
Invalid signature for type object when both __init__ and __new__ https://github.com/python/mypy/issues/1435
Please reload this pagehttps://github.com/python/mypy/pull/5642
https://github.com/msullivan
https://github.com/gvanrossum
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.