René's URL Explorer Experiment


Title: Third-party stubs: recommending a default path for installing stub files, overriding stubs · Issue #84 · python/typing · GitHub

Open Graph Title: Third-party stubs: recommending a default path for installing stub files, overriding stubs · Issue #84 · python/typing

X Title: Third-party stubs: recommending a default path for installing stub files, overriding stubs · Issue #84 · python/typing

Description: The ideal situation is where a file is annotated. The other obvious choice if there is a module.pyi stub file alongside module.py. However, since package maintainers are free not to add type hinting to their packages, there has to be sup...

Open Graph Description: The ideal situation is where a file is annotated. The other obvious choice if there is a module.pyi stub file alongside module.py. However, since package maintainers are free not to add type hintin...

X Description: The ideal situation is where a file is annotated. The other obvious choice if there is a module.pyi stub file alongside module.py. However, since package maintainers are free not to add type hintin...

Opengraph URL: https://github.com/python/typing/issues/84

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Third-party stubs: recommending a default path for installing stub files, overriding stubs","articleBody":"The ideal situation is where a file is annotated. The other obvious choice if there is a module.pyi stub file alongside module.py. However, since package maintainers are free not to add type hinting to their packages, there has to be support for third-party stubs installable by `pip` from PyPI. This opens the following questions:\n- should there be a recommended naming scheme for those stubs? \"**No**, a package maintainer can always trump third-party implementations by including types in his own module.\".\n- should there be a default install place for those stubs? \"**Yes**, this makes the type checker's stub discovery much easier. We are proposing using `data_files=('share/typehinting/', pathlib.Path(SRC_PATH).glob('**/*.pyi'))` in setup.py. We are proposing to add a setup.cfg hook to do the right thing automatically.\"\n- should third-party stubs be versioned? \"**Yes**, they should be versioned as the lowest version of the source package that they are describing. Example: FooPackage has versions 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, 2.3, 2.4. There are API changes in versions 1.1, 2.0 and 2.4. We need only those three versions of stubs, in which case the user should install the closest **lower** version of stubs available. If the user lives dangerously and does not pin versions, running both the source package and the stubs as **latest** will generally work (as long as the stubs are regularly updated).\"\n- as mentioned previously, the package itself might provide *.pyi files. There will be a directory (`shared/typehinting/`) where third-party packages can put their implementation of stubs for external packages. Also, tools like type checkers or IDEs might provide their own custom paths for stubs they themselves populate, etc. The type checker itself is expected to only load one *.pyi file per corresponding *.py module.\n","author":{"url":"https://github.com/ambv","@type":"Person","name":"ambv"},"datePublished":"2015-04-14T19:55:28Z","url":"https://github.com/python/typing/issues/84"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2dd7de72-3f0b-5c6c-9150-8cb3269a6dc4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9858:DD1C:1EB5AB7:2996EB1:6B001658
html-safe-nonce7374ad65d01099329f532a79413e471c04f177da13818ae796b4bc47885e0bf8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODU4OkREMUM6MUVCNUFCNzoyOTk2RUIxOjZCMDAxNjU4IiwidmlzaXRvcl9pZCI6IjUzNTg2MzE0MDYyMzY4NjYxMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacde16008f12d7ca8282d5ed3207d9b34bd2ee702ec5b7d477381669de8d74d0bf
hovercard-subject-tagissue:68481507
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typing/84/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a145674b2ee3aec391faf9cf9479f1564af40eedc32c52dd1b9911a7671b04ca/python/typing/issues/84
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a145674b2ee3aec391faf9cf9479f1564af40eedc32c52dd1b9911a7671b04ca/python/typing/issues/84
og:image:altThe ideal situation is where a file is annotated. The other obvious choice if there is a module.pyi stub file alongside module.py. However, since package maintainers are free not to add type hintin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameambv
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typing/issues/84#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F84
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%2Fissues%2F84
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftyping
Reloadhttps://github.com/python/typing/issues/84
Reloadhttps://github.com/python/typing/issues/84
Reloadhttps://github.com/python/typing/issues/84
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
https://github.com/python/typing
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/84
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/84
Third-party stubs: recommending a default path for installing stub files, overriding stubshttps://github.com/python/typing/issues/84#top
https://github.com/ambv
ambvhttps://github.com/ambv
on Apr 14, 2015https://github.com/python/typing/issues/84#issue-68481507
Nexthttps://github.com/python/typing/issues/84?timeline_page=1
ambvhttps://github.com/ambv
on Apr 17, 2015https://github.com/python/typing/issues/84#event-283583528
Add third-party stubs discussion outlined in #84. Reformat paragraphs…https://github.com/python/typing/commit/7433bcbe74fb874fa7ebafa72608ca1db2d50ae1
#84https://github.com/python/typing/issues/84
7433bcbhttps://github.com/python/typing/commit/7433bcbe74fb874fa7ebafa72608ca1db2d50ae1
https://github.com/ambv
ambvhttps://github.com/ambv
on Apr 17, 2015https://github.com/python/typing/issues/84#issuecomment-93880109
@JukkaLhttps://github.com/JukkaL
https://github.com/JukkaL/mypy/tree/master/stubshttps://github.com/JukkaL/mypy/tree/master/stubs
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Apr 17, 2015https://github.com/python/typing/issues/84#issuecomment-93890144
https://github.com/sffjunkie
sffjunkiehttps://github.com/sffjunkie
on Apr 17, 2015https://github.com/python/typing/issues/84#issuecomment-93974704
https://github.com/ambv
ambvhttps://github.com/ambv
on Apr 17, 2015https://github.com/python/typing/issues/84#issuecomment-94088767
@JukkaLhttps://github.com/JukkaL
@vlasovskikhhttps://github.com/vlasovskikh
gvanrossumhttps://github.com/gvanrossum
enhancementhttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22enhancement%22
on May 18, 2015https://github.com/python/typing/issues/84#event-307592533
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on May 18, 2015https://github.com/python/typing/issues/84#issuecomment-103131681
gvanrossumhttps://github.com/gvanrossum
completedhttps://github.com/python/typing/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 18, 2015https://github.com/python/typing/issues/84#event-307597588
gvanrossumhttps://github.com/gvanrossum
on May 18, 2015https://github.com/python/typing/issues/84#event-307597639
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on May 18, 2015https://github.com/python/typing/issues/84#issuecomment-103131776
https://github.com/o11c
o11chttps://github.com/o11c
on Aug 4, 2015https://github.com/python/typing/issues/84#issuecomment-127479725
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Aug 4, 2015https://github.com/python/typing/issues/84#issuecomment-127542043
https://github.com/o11c
o11chttps://github.com/o11c
on Aug 4, 2015https://github.com/python/typing/issues/84#issuecomment-127736250
@gvanrossumhttps://github.com/gvanrossum
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on May 25, 2017https://github.com/python/typing/issues/84#issuecomment-304065757
python/typeshed#153https://github.com/python/typeshed/issues/153
https://github.com/JelleZijlstra/mypy/tree/stubdirhttps://github.com/JelleZijlstra/mypy/tree/stubdir
https://github.com/JelleZijlstra/sqlalchemy-stubshttps://github.com/JelleZijlstra/sqlalchemy-stubs
@JukkaLhttps://github.com/JukkaL
@vlasovskikhhttps://github.com/vlasovskikh
@matthiaskrammhttps://github.com/matthiaskramm
JelleZijlstrahttps://github.com/JelleZijlstra
on May 25, 2017https://github.com/python/typing/issues/84#event-1097765949
add setup.pyhttps://github.com/JelleZijlstra/sqlalchemy-stubs/commit/c5b6aa5a0e1d5f5155b13278a40f6e6c1e99c439
c5b6aa5https://github.com/JelleZijlstra/sqlalchemy-stubs/commit/c5b6aa5a0e1d5f5155b13278a40f6e6c1e99c439
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 27, 2017https://github.com/python/typing/issues/84#issuecomment-318252077
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jul 27, 2017https://github.com/python/typing/issues/84#issuecomment-318255034
@asvetlovhttps://github.com/asvetlov
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jul 27, 2017https://github.com/python/typing/issues/84#issuecomment-318256377
someone's workflowhttps://xkcd.com/1172/
chadrikhttps://github.com/chadrik
on Aug 30, 2017https://github.com/python/typing/issues/84#event-1228041383
Deploy .pyi stubs alongside .py files.https://github.com/chadrik/attrs/commit/2a30736f9095ebe700a1415c3f3c1a8be10b2ae7
2a30736https://github.com/chadrik/attrs/commit/2a30736f9095ebe700a1415c3f3c1a8be10b2ae7
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Sep 9, 2017https://github.com/python/typing/issues/84#issuecomment-328307528
PEP 484 texthttps://www.python.org/dev/peps/pep-0484/#storing-and-distributing-stub-files
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Sep 10, 2017https://github.com/python/typing/issues/84#issuecomment-328312808
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Sep 10, 2017https://github.com/python/typing/issues/84#issuecomment-328366340
https://github.com/ethanhs/peps/blob/typedist/pep-0561.rsthttps://github.com/ethanhs/peps/blob/typedist/pep-0561.rst
python/peps#415https://github.com/python/peps/pull/415
chadrikhttps://github.com/chadrik
on Sep 25, 2017https://github.com/python/typing/issues/84#event-1264238738
Deploy .pyi stubs alongside .py files.https://github.com/chadrik/attrs/commit/b45e44c6f0216ceb1caaa54ac1b0b4a3701858a9
b45e44chttps://github.com/chadrik/attrs/commit/b45e44c6f0216ceb1caaa54ac1b0b4a3701858a9
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Oct 27, 2017https://github.com/python/typing/issues/84#issuecomment-339840021
https://www.python.org/dev/peps/pep-0561/https://www.python.org/dev/peps/pep-0561/
chadrikhttps://github.com/chadrik
on Nov 3, 2017https://github.com/python/typing/issues/84#event-1325733897
Deploy .pyi stubs alongside .py files.https://github.com/chadrik/attrs/commit/a725e3754ef49cc64aa5eac3249d450184947300
a725e37https://github.com/chadrik/attrs/commit/a725e3754ef49cc64aa5eac3249d450184947300
hynekhttps://github.com/hynek
on Jul 12, 2018https://github.com/python/typing/issues/84#event-1729949098
Add PEP484 stubs (#238)https://github.com/python-attrs/attrs/commit/de104e016bb83f0caff7b32dce8e01e9845e63ec
#238https://github.com/python-attrs/attrs/pull/238
de104e0https://github.com/python-attrs/attrs/commit/de104e016bb83f0caff7b32dce8e01e9845e63ec
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Jul 26, 2018https://github.com/python/typing/issues/84#issuecomment-408071143
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jul 26, 2018https://github.com/python/typing/issues/84#issuecomment-408114841
gvanrossumhttps://github.com/gvanrossum
completedhttps://github.com/python/typing/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 26, 2018https://github.com/python/typing/issues/84#event-1755158834
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Aug 1, 2018https://github.com/python/typing/issues/84#issuecomment-409579055
@ethanhshttps://github.com/ethanhs
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typing/issues/84
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typing/issues/84
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.