René's URL Explorer Experiment


Title: Allow instantiation of Type[A], if A is abstract by ilevkivskyi · Pull Request #2853 · python/mypy · GitHub

Open Graph Title: Allow instantiation of Type[A], if A is abstract by ilevkivskyi · Pull Request #2853 · python/mypy

X Title: Allow instantiation of Type[A], if A is abstract by ilevkivskyi · Pull Request #2853 · python/mypy

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

Open Graph Description: Fixes #1843 (It was also necessary to fix few minor things to make this work correctly) The rules are simple, assuming we have: class A: @abstractmethod def m(self) -> None: pass class ...

X Description: Fixes #1843 (It was also necessary to fix few minor things to make this work correctly) The rules are simple, assuming we have: class A: @abstractmethod def m(self) -> None: pass cl...

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

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:1c6945ce-202a-4924-6fba-6117ce72f0a3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA14:609A0:1EC1996:2786E0E:6AFFCAEC
html-safe-nonceb8ed2051438052ce779bbcf0b48493d10f47c0e63cb23255b57b4b4987403e2e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTE0OjYwOUEwOjFFQzE5OTY6Mjc4NkUwRTo2QUZGQ0FFQyIsInZpc2l0b3JfaWQiOiI0NjQ1NzQzOTg1NTk4Mzg0ODc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb6d45b1fee953d2578ff947733e91e442bdf4460797666c6c9e168d99287fff9
hovercard-subject-tagpull_request:105787233
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/2853/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5ae7bf4cd4aa16bbf951cce2a471791069b9824e6aad3162b5813ce054618e54/python/mypy/pull/2853
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5ae7bf4cd4aa16bbf951cce2a471791069b9824e6aad3162b5813ce054618e54/python/mypy/pull/2853
og:image:altFixes #1843 (It was also necessary to fix few minor things to make this work correctly) The rules are simple, assuming we have: class A: @abstractmethod def m(self) -> None: pass class ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameilevkivskyi
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/2853#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F2853
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%2F2853
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/2853
Reloadhttps://github.com/python/mypy/pull/2853
Reloadhttps://github.com/python/mypy/pull/2853
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 requests547 (547)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
gvanrossumhttps://github.com/gvanrossum
python:masterhttps://github.com/python/mypy/tree/master
ilevkivskyi:abstract-type-okhttps://github.com/ilevkivskyi/mypy/tree/abstract-type-ok
Conversationhttps://github.com/python/mypy/pull/2853
Commits7 (7)https://github.com/python/mypy/pull/2853/commits
Checkshttps://github.com/python/mypy/pull/2853/checks
Files changedhttps://github.com/python/mypy/pull/2853/files
Allow instantiation of Type[A], if A is abstracthttps://github.com/python/mypy/pull/2853#top
gvanrossumhttps://github.com/gvanrossum
python:masterhttps://github.com/python/mypy/tree/master
ilevkivskyi:abstract-type-okhttps://github.com/ilevkivskyi/mypy/tree/abstract-type-ok
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Feb 12, 2017https://github.com/python/mypy/pull/2853#issue-207042988
Please reload this pagehttps://github.com/python/mypy/pull/2853
#1843https://github.com/python/mypy/issues/1843
@gvanrossumhttps://github.com/gvanrossum
#1843https://github.com/python/mypy/issues/1843
python/peps#224https://github.com/python/peps/pull/224
Please reload this pagehttps://github.com/python/mypy/pull/2853
ilevkivskyihttps://github.com/ilevkivskyi
February 12, 2017 00:13https://github.com/python/mypy/pull/2853#commits-pushed-b0ff0cc
https://github.com/ilevkivskyi
Some ideashttps://github.com/python/mypy/pull/2853/commits/b0ff0cc8881df144601688ca01c3264df08eb7b3
b0ff0cchttps://github.com/python/mypy/pull/2853/commits/b0ff0cc8881df144601688ca01c3264df08eb7b3
https://github.com/ilevkivskyi
Work on corner cases, more testshttps://github.com/python/mypy/pull/2853/commits/71ea62f24d084714ebf616267c705e3cebf01550
71ea62fhttps://github.com/python/mypy/pull/2853/commits/71ea62f24d084714ebf616267c705e3cebf01550
https://github.com/ilevkivskyi
Fix minor issues and linthttps://github.com/python/mypy/pull/2853/commits/ec22e4d3759335a36fdf4f1f8baf4bffb5b0924e
ec22e4dhttps://github.com/python/mypy/pull/2853/commits/ec22e4d3759335a36fdf4f1f8baf4bffb5b0924e
https://github.com/ilevkivskyi
Formattinghttps://github.com/python/mypy/pull/2853/commits/80c82e7acdc9c18b587e33162d17ed1bc058fd4d
80c82e7https://github.com/python/mypy/pull/2853/commits/80c82e7acdc9c18b587e33162d17ed1bc058fd4d
https://github.com/elazarg
elazarghttps://github.com/elazarg
Feb 16, 2017https://github.com/python/mypy/pull/2853#issuecomment-280323357
#2430https://github.com/python/mypy/pull/2430
Please reload this pagehttps://github.com/python/mypy/pull/2853
https://github.com/ilevkivskyi
Merge branch 'master' into abstract-type-okhttps://github.com/python/mypy/pull/2853/commits/f52a3bdb804c46d49c4ad5127fa583ee057ac4be
f52a3bdhttps://github.com/python/mypy/pull/2853/commits/f52a3bdb804c46d49c4ad5127fa583ee057ac4be
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Mar 13, 2017 https://github.com/python/mypy/pull/2853#ref-pullrequest-213513982
PEP 544: Protocols python/peps#224 https://github.com/python/peps/pull/224
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017 https://github.com/python/mypy/pull/2853#pullrequestreview-27993358
View reviewed changes https://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be
gvanrossumhttps://github.com/gvanrossum
https://github.com/python/mypy/pull/2853#pullrequestreview-27993358
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
test-data/unit/check-abstract.testhttps://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be#diff-c2602d33d694f5245e37092f2a5d94e98a7805c3b4ab2fbca9ae7f385288f598
gvanrossumhttps://github.com/gvanrossum
Mar 20, 2017https://github.com/python/mypy/pull/2853#discussion_r107043302
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
ilevkivskyihttps://github.com/ilevkivskyi
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107111704
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
mypy/checker.pyhttps://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107061748
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
ilevkivskyihttps://github.com/ilevkivskyi
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107111053
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
mypy/checker.pyhttps://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107061821
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
mypy/checker.pyhttps://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107061903
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
ilevkivskyihttps://github.com/ilevkivskyi
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107112224
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
mypy/checkexpr.pyhttps://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be#diff-42eda644ce5003e33ea0766d7601fcfb4934ad106429abfe115954a1fccddd07
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107062202
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
ilevkivskyihttps://github.com/ilevkivskyi
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107110796
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
mypy/checkexpr.pyhttps://github.com/python/mypy/pull/2853/files/f52a3bdb804c46d49c4ad5127fa583ee057ac4be#diff-42eda644ce5003e33ea0766d7601fcfb4934ad106429abfe115954a1fccddd07
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017https://github.com/python/mypy/pull/2853#discussion_r107062497
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/2853
ilevkivskyihttps://github.com/ilevkivskyi
March 21, 2017 09:53https://github.com/python/mypy/pull/2853#commits-pushed-65eab95
https://github.com/ilevkivskyi
Apply review commentshttps://github.com/python/mypy/pull/2853/commits/65eab95fdb766c43b94f466be31e50ed909d5cb2
65eab95https://github.com/python/mypy/pull/2853/commits/65eab95fdb766c43b94f466be31e50ed909d5cb2
https://github.com/ilevkivskyi
Add test fixture; fix formattinghttps://github.com/python/mypy/pull/2853/commits/4d2e6fd9b7381c4355dab65404afc73c7a752ec4
4d2e6fdhttps://github.com/python/mypy/pull/2853/commits/4d2e6fd9b7381c4355dab65404afc73c7a752ec4
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Mar 21, 2017https://github.com/python/mypy/pull/2853#issuecomment-288027940
@gvanrossumhttps://github.com/gvanrossum
Please reload this pagehttps://github.com/python/mypy/pull/2853
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017https://github.com/python/mypy/pull/2853#issuecomment-288163360
Please reload this pagehttps://github.com/python/mypy/pull/2853
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Mar 21, 2017 https://github.com/python/mypy/pull/2853#pullrequestreview-28187988
View reviewed changes https://github.com/python/mypy/pull/2853/files/4d2e6fd9b7381c4355dab65404afc73c7a752ec4
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Mar 23, 2017 https://github.com/python/mypy/pull/2853#ref-issue-216463524
Type annotation for map with abstract classes as values #3048 https://github.com/python/mypy/issues/3048
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Mar 27, 2017https://github.com/python/mypy/pull/2853#issuecomment-289553755
@gvanrossumhttps://github.com/gvanrossum
Please reload this pagehttps://github.com/python/mypy/pull/2853
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
72967fdhttps://github.com/python/mypy/commit/72967fdafb1fa31651536b5633856c8e5b7fb0d3
Mar 27, 2017https://github.com/python/mypy/pull/2853#event-1017297518
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Mar 27, 2017https://github.com/python/mypy/pull/2853#issuecomment-289556836
Please reload this pagehttps://github.com/python/mypy/pull/2853
https://github.com/elazarg
elazarghttps://github.com/elazarg
Mar 27, 2017 https://github.com/python/mypy/pull/2853#ref-pullrequest-188534670
Fix: uninitialized CallableType.is_classmethod_class #2430 https://github.com/python/mypy/pull/2430
https://github.com/janlarres
janlarreshttps://github.com/janlarres
Mar 24, 2019 https://github.com/python/mypy/pull/2853#ref-issue-424675614
Instantiating concrete classes fails check in some cases #6586 https://github.com/python/mypy/issues/6586
https://github.com/achimnol
achimnolhttps://github.com/achimnol
Dec 2, 2019 https://github.com/python/mypy/pull/2853#ref-issue-530889131
Inferencing type reference of abstract class inferred from concrete type values #8050 https://github.com/python/mypy/issues/8050
https://github.com/alessiamarcolini
alessiamarcolinihttps://github.com/alessiamarcolini
Sep 20, 2020 https://github.com/python/mypy/pull/2853#ref-pullrequest-704901256
Grooming and cleaning pt3 histolab/histolab#145 https://github.com/histolab/histolab/pull/145
https://github.com/iutlu
iutluhttps://github.com/iutlu
Jul 22, 2024 https://github.com/python/mypy/pull/2853#ref-issue-2422469445
type[A] cannot be instantiated via partial if A is abstract #17556 https://github.com/python/mypy/issues/17556
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%2F2853
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
https://github.com/python/mypy/pull/2853/files/4d2e6fd9b7381c4355dab65404afc73c7a752ec4
Please reload this pagehttps://github.com/python/mypy/pull/2853
class object typed with Type[SomeAbstractClass] should not complain about instantiation https://github.com/python/mypy/issues/1843
Please reload this pagehttps://github.com/python/mypy/pull/2853
https://github.com/ilevkivskyi
https://github.com/elazarg
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.