René's URL Explorer Experiment


Title: Enable Typechecking When Imported · Issue #379 · massive-com/client-python · GitHub

Open Graph Title: Enable Typechecking When Imported · Issue #379 · massive-com/client-python

X Title: Enable Typechecking When Imported · Issue #379 · massive-com/client-python

Description: Is your feature request related to a problem? Please describe. When type checking a project that uses this library with MyPy, type checks are skipped for the import: error: Skipping analyzing "polygon": module is installed, but missing l...

Open Graph Description: Is your feature request related to a problem? Please describe. When type checking a project that uses this library with MyPy, type checks are skipped for the import: error: Skipping analyzing "poly...

X Description: Is your feature request related to a problem? Please describe. When type checking a project that uses this library with MyPy, type checks are skipped for the import: error: Skipping analyzing "...

Opengraph URL: https://github.com/massive-com/client-python/issues/379

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enable Typechecking When Imported","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nWhen type checking a project that uses this library with MyPy, type checks are skipped for the import:\r\n\r\n```\r\nerror: Skipping analyzing \"polygon\": module is installed, but missing library stubs or py.typed marker  [import]\r\nnote: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports\r\n```\r\n\r\n**Describe the solution you'd like**\r\nInclude an empty `py.typed` file in the root of the module. See: https://peps.python.org/pep-0561/#packaging-type-information \r\n\r\n\r\n**Describe alternatives you've considered**\r\n\r\nPotential workarounds include disabling module typing entirely using `import polygon # type: ignore`, or using a script that automatically creates the py.typed file in the import before typechecking.\r\n\r\n```py\r\nfrom typing import Any\r\nfrom mypy import api\r\nimport polygon\r\n\r\n\r\ndef enable_typing(lib: Any) -> None:  # type: ignore\r\n    open(lib.__path__[0] + \"/py.typed\", 'a').close()\r\n\r\n\r\nenable_typing(polygon)\r\n\r\n\r\nresult = api.run([\".\"])\r\nif result[0]:\r\n    print('\\nType checking report:\\n')\r\n    print(result[0])\r\n\r\nif result[1]:\r\n    print('\\nError report:\\n')\r\n    print(result[1])\r\n\r\nprint('\\nExit status:', result[2])\r\nquit(result[2])\r\n```\r\n\r\nWorkarounds are fairly easy, but so is the solution so I figured I'd post this here.\r\n\r\n**Additional context**\r\nN/A\r\n","author":{"url":"https://github.com/mileswatson","@type":"Person","name":"mileswatson"},"datePublished":"2023-02-12T13:47:46Z","url":"https://github.com/massive-com/client-python/issues/379"}

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:c9671ce6-f636-b26f-bf5b-85f1b1e2c002
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB3E:D707B:FA7DEB:14B6A14:6AFE9CD7
html-safe-nonce3457fd3153231e8d0ffc41608a36fb4a486e24362020569e7147a68ac835bf33
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjNFOkQ3MDdCOkZBN0RFQjoxNEI2QTE0OjZBRkU5Q0Q3IiwidmlzaXRvcl9pZCI6IjgyNzc3MTk1NTY4OTQzOTk3MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaa0923af5a6b68a62d1de4bb13cf97133aed86cdd9e21446087dc6edea5ac88c
hovercard-subject-tagissue:1581265940
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/massive-com/client-python/379/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5cf30cada41919d750244fcb9c12a85287b7b1a713776bf043adce360706a135/massive-com/client-python/issues/379
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cf30cada41919d750244fcb9c12a85287b7b1a713776bf043adce360706a135/massive-com/client-python/issues/379
og:image:altIs your feature request related to a problem? Please describe. When type checking a project that uses this library with MyPy, type checks are skipped for the import: error: Skipping analyzing "poly...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemileswatson
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/massive-com/client-python git https://github.com/massive-com/client-python.git
octolytics-dimension-user_id191946194
octolytics-dimension-user_loginmassive-com
octolytics-dimension-repository_id216660192
octolytics-dimension-repository_nwomassive-com/client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id216660192
octolytics-dimension-repository_network_root_nwomassive-com/client-python
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/massive-com/client-python/issues/379#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmassive-com%2Fclient-python%2Fissues%2F379
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%2Fmassive-com%2Fclient-python%2Fissues%2F379
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=massive-com%2Fclient-python
Reloadhttps://github.com/massive-com/client-python/issues/379
Reloadhttps://github.com/massive-com/client-python/issues/379
Reloadhttps://github.com/massive-com/client-python/issues/379
massive-comhttps://github.com/massive-com
client-pythonhttps://github.com/massive-com/client-python
Codehttps://github.com/massive-com/client-python
Issues13 (13)https://github.com/massive-com/client-python/issues
Pull requests6 (6)https://github.com/massive-com/client-python/pulls
Actionshttps://github.com/massive-com/client-python/actions
Security and qualityhttps://github.com/massive-com/client-python/security
Insightshttps://github.com/massive-com/client-python/insights
https://github.com/massive-com/client-python
New issuehttps://github.com/login?return_to=https://github.com/massive-com/client-python/issues/379
New issuehttps://github.com/login?return_to=https://github.com/massive-com/client-python/issues/379
Enable Typechecking When Importedhttps://github.com/massive-com/client-python/issues/379#top
enhancementNew feature or requesthttps://github.com/massive-com/client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/mileswatson
mileswatsonhttps://github.com/mileswatson
on Feb 12, 2023https://github.com/massive-com/client-python/issues/379#issue-1581265940
https://peps.python.org/pep-0561/#packaging-type-informationhttps://peps.python.org/pep-0561/#packaging-type-information
mileswatsonhttps://github.com/mileswatson
enhancementNew feature or requesthttps://github.com/massive-com/client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Feb 12, 2023https://github.com/massive-com/client-python/issues/379#event-8498363283
mileswatsonhttps://github.com/mileswatson
on Feb 12, 2023https://github.com/massive-com/client-python/issues/379#event-8498364130
mileswatsonhttps://github.com/mileswatson
on Feb 12, 2023https://github.com/massive-com/client-python/issues/379#event-8498594746
https://github.com/justinpolygon
justinpolygonhttps://github.com/justinpolygon
on Feb 23, 2023https://github.com/massive-com/client-python/issues/379#issuecomment-1441295102
@mileswatsonhttps://github.com/mileswatson
https://github.com/mileswatson
mileswatsonhttps://github.com/mileswatson
on Feb 23, 2023https://github.com/massive-com/client-python/issues/379#issuecomment-1441461069
@justinpolygonhttps://github.com/justinpolygon
https://github.com/justinpolygon
justinpolygonhttps://github.com/justinpolygon
on Feb 23, 2023https://github.com/massive-com/client-python/issues/379#issuecomment-1442214834
@mileswatsonhttps://github.com/mileswatson
justinpolygonhttps://github.com/justinpolygon
completedhttps://github.com/massive-com/client-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 23, 2023https://github.com/massive-com/client-python/issues/379#event-8594608351
https://github.com/ylhan
ylhanhttps://github.com/ylhan
on Sep 26, 2023https://github.com/massive-com/client-python/issues/379#issuecomment-1735817200
@justinpolygonhttps://github.com/justinpolygon
https://github.com/dodofarm
dodofarmhttps://github.com/dodofarm
on Feb 5, 2026https://github.com/massive-com/client-python/issues/379#issuecomment-3854848736
Sign up for freehttps://github.com/signup?return_to=https://github.com/massive-com/client-python/issues/379
Sign in to commenthttps://github.com/login?return_to=https://github.com/massive-com/client-python/issues/379
enhancementNew feature or requesthttps://github.com/massive-com/client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.