René's URL Explorer Experiment


Title: Document typeshed better: a mypy upgrade suddenly triggers new errors due to typeshed changes · Issue #7735 · python/typeshed · GitHub

Open Graph Title: Document typeshed better: a mypy upgrade suddenly triggers new errors due to typeshed changes · Issue #7735 · python/typeshed

X Title: Document typeshed better: a mypy upgrade suddenly triggers new errors due to typeshed changes · Issue #7735 · python/typeshed

Description: I just updated MyPy in Jinja, and had to ignore the return type of sum in one of my functions because MyPy started saying it wasn't compatible with the TypeVar I was using. pallets/jinja@a24df26 I see a recent change related to the retur...

Open Graph Description: I just updated MyPy in Jinja, and had to ignore the return type of sum in one of my functions because MyPy started saying it wasn't compatible with the TypeVar I was using. pallets/jinja@a24df26 I ...

X Description: I just updated MyPy in Jinja, and had to ignore the return type of sum in one of my functions because MyPy started saying it wasn't compatible with the TypeVar I was using. pallets/jinja@a24df2...

Opengraph URL: https://github.com/python/typeshed/issues/7735

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document typeshed better: a mypy upgrade suddenly triggers new errors due to typeshed changes","articleBody":"I just updated MyPy in Jinja, and had to ignore the return type of `sum` in one of my functions because MyPy started saying it wasn't compatible with the `TypeVar` I was using. https://github.com/pallets/jinja/commit/a24df26d54fa2ccbe9bdaa0bb9419075a00e2699\r\n\r\nI see a recent change related to the return type of `sum`: https://github.com/python/typeshed/pull/7578. Is this a bug in typeshed/mypy, or is there a better way I should be annotating that function in Jinja?\r\n\r\n```python\r\nV = t.TypeVar(\"V\")\r\n\r\ndef sync_do_sum(\r\n    environment: \"Environment\",\r\n    iterable: \"t.Iterable[V]\",\r\n    attribute: t.Optional[t.Union[str, int]] = None,\r\n    start: V = 0,  # type: ignore\r\n) -> V:\r\n    if attribute is not None:\r\n        iterable = map(make_attrgetter(environment, attribute), iterable)\r\n\r\n    return sum(iterable, start)  # type: ignore[no-any-return, call-overload]\r\n```\r\n\r\n```\r\nsrc/jinja2/filters.py:1295: error: Returning Any from function declared to return \"V\"  [no-any-return]\r\nsrc/jinja2/filters.py:1295: error: No overload variant of \"sum\" matches argument types \"Iterable[V]\", \"V\"  [call-overload]\r\nsrc/jinja2/filters.py:1295: note: Possible overload variants:\r\nsrc/jinja2/filters.py:1295: note:     def [_SumT \u003c: _SupportsSum] sum(Iterable[_SumT]) -> Union[_SumT, Literal[0]]\r\nsrc/jinja2/filters.py:1295: note:     def [_SumT \u003c: _SupportsSum, _SumS \u003c: _SupportsSum] sum(Iterable[_SumT], _SumS) -> Union[_SumT, _SumS]\r\nFound 2 errors in 1 file (checked 25 source files)\r\n```","author":{"url":"https://github.com/davidism","@type":"Person","name":"davidism"},"datePublished":"2022-04-28T14:51:59Z","url":"https://github.com/python/typeshed/issues/7735"}

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:5c168e71-be6d-6e60-1b39-17ec82c155d4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A10:1DF7D7:75A33:A3C53:6B00511C
html-safe-nonce2d8531c034c1c52cbd14c4657c35a55961c821f71b86cb93157bd808d790c754
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTEwOjFERjdENzo3NUEzMzpBM0M1Mzo2QjAwNTExQyIsInZpc2l0b3JfaWQiOiI1NjgxOTUwMzAzNjkyMjgwMDkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca2369c075e154c7c360033aef0141de5c7bf79734de04739ebd142cc5ee1ff56
hovercard-subject-tagissue:1218854920
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/typeshed/7735/issue_layout
twitter:imagehttps://opengraph.githubassets.com/041e59aa7fa6b3df412bf7c2ffd4a77821d1a5edf0727e939bccaaaa5fae6287/python/typeshed/issues/7735
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/041e59aa7fa6b3df412bf7c2ffd4a77821d1a5edf0727e939bccaaaa5fae6287/python/typeshed/issues/7735
og:image:altI just updated MyPy in Jinja, and had to ignore the return type of sum in one of my functions because MyPy started saying it wasn't compatible with the TypeVar I was using. pallets/jinja@a24df26 I ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavidism
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
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
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/7735#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F7735
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%2Ftypeshed%2Fissues%2F7735
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%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/7735
Reloadhttps://github.com/python/typeshed/issues/7735
Reloadhttps://github.com/python/typeshed/issues/7735
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/7735
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/7735
Document typeshed better: a mypy upgrade suddenly triggers new errors due to typeshed changeshttps://github.com/python/typeshed/issues/7735#top
project: infrastructuretypeshed build, test, or distribution relatedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20infrastructure%22
https://github.com/davidism
davidismhttps://github.com/davidism
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issue-1218854920
pallets/jinja@a24df26https://github.com/pallets/jinja/commit/a24df26d54fa2ccbe9bdaa0bb9419075a00e2699
#7578https://github.com/python/typeshed/pull/7578
https://github.com/srittau
srittauhttps://github.com/srittau
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112317506
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112318939
https://github.com/davidism
davidismhttps://github.com/davidism
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112353142
https://github.com/davidism
davidismhttps://github.com/davidism
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112358849
https://github.com/srittau
srittauhttps://github.com/srittau
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112359366
https://typing.readthedocs.iohttps://typing.readthedocs.io
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112367753
Add info about classes and types to 'getting started' docs mypy#6557https://github.com/python/mypy/pull/6557
@srittauhttps://github.com/srittau
https://typing.readthedocs.io/https://typing.readthedocs.io/
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112506992
https://github.com/srittau
srittauhttps://github.com/srittau
on Apr 28, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1112563143
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Apr 30, 2022https://github.com/python/typeshed/issues/7735#issuecomment-1114007844
Suggest contributing types to typeshed in some error messages mypy#10886https://github.com/python/mypy/issues/10886
AlexWaygoodhttps://github.com/AlexWaygood
docshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22docs%22
on Jun 12, 2022https://github.com/python/typeshed/issues/7735#event-6791625758
AlexWaygoodhttps://github.com/AlexWaygood
on Jun 29, 2022https://github.com/python/typeshed/issues/7735#event-6903396720
srittauhttps://github.com/srittau
project: infrastructuretypeshed build, test, or distribution relatedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20infrastructure%22
docshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22docs%22
on Mar 23, 2024https://github.com/python/typeshed/issues/7735#event-12224188775
https://github.com/srittau
srittauhttps://github.com/srittau
on Jul 11, 2026https://github.com/python/typeshed/issues/7735#issuecomment-4948131252
srittauhttps://github.com/srittau
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 11, 2026https://github.com/python/typeshed/issues/7735#event-27858094161
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/7735
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/7735
project: infrastructuretypeshed build, test, or distribution relatedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20infrastructure%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.