René's URL Explorer Experiment


Title: `collections.abc.Set`, etc., missing `_from_iterable()` classmethod · Issue #15298 · python/typeshed · GitHub

Open Graph Title: `collections.abc.Set`, etc., missing `_from_iterable()` classmethod · Issue #15298 · python/typeshed

X Title: `collections.abc.Set`, etc., missing `_from_iterable()` classmethod · Issue #15298 · python/typeshed

Description: The base class for non-mutable abstract sets, collections.abc.Set (and a few others in Lib/_collections_abc.py) provide a classmethod(_from_iterable(Iterable[...]) -> Set[...]) (or similar) class method, which serves as a single place to...

Open Graph Description: The base class for non-mutable abstract sets, collections.abc.Set (and a few others in Lib/_collections_abc.py) provide a classmethod(_from_iterable(Iterable[...]) -> Set[...]) (or similar) class m...

X Description: The base class for non-mutable abstract sets, collections.abc.Set (and a few others in Lib/_collections_abc.py) provide a classmethod(_from_iterable(Iterable[...]) -> Set[...]) (or similar) clas...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`collections.abc.Set`, etc., missing `_from_iterable()` classmethod","articleBody":"The base class for non-mutable abstract sets, `collections.abc.Set` (and a few others in `Lib/_collections_abc.py`) provide a `classmethod(_from_iterable(Iterable[...]) -> Set[...])` (or similar) class method, which serves as a single place to override how the results of set-wise operations are constructed.\n\nC.f.: https://docs.python.org/3/library/collections.abc.html#examples-and-recipes\n\nThe class method in question, `_from_iterable()`, doesn't appear anywhere in typeshed (GitHub search of this repo, 2026-01-17).\n\n----\n\nMotivating example: I have a set-like class `Region` which acts as a set of all co-ordinates in a 2D area bounded min/max x and y co-ordinates. The results of set-wise operations involving a `Region` often aren't rectangular, and so can't be represented by a `Region`. Without `_from_iterable()`, `collections.abc.Set` tries to construct the result as `Region(\u003cIterable[Coord]>)`, which won't (and can't) work. By overriding `Set._from_iterable()` in `Region`, I can construct results as `set` or `frozenset` instances, which _can_ represent the results in all cases.\n\n","author":{"url":"https://github.com/finite-state-machine","@type":"Person","name":"finite-state-machine"},"datePublished":"2026-01-17T15:39:58Z","url":"https://github.com/python/typeshed/issues/15298"}

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:727f98ef-9b14-23ea-3e97-ea98039acd40
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAADE:3EE843:270132E:3552D9F:6B004855
html-safe-nonce9f6fc982a2983d6f363b5ae2d5b1344ea05469fc47a899a40d4e7b4172c2f84b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQURFOjNFRTg0MzoyNzAxMzJFOjM1NTJEOUY6NkIwMDQ4NTUiLCJ2aXNpdG9yX2lkIjoiNjA0OTg1NzQxMjcyMTAzNTM0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdef6daf326c489f4f90a6c8ab77d7114931f9d8bd6f9ad9da63377e0b29f710e
hovercard-subject-tagissue:3825427978
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/15298/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5839cea8b0eb0e1aea751fb9d818e80077f69d10509e17f20956a8602dcc7b4b/python/typeshed/issues/15298
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5839cea8b0eb0e1aea751fb9d818e80077f69d10509e17f20956a8602dcc7b4b/python/typeshed/issues/15298
og:image:altThe base class for non-mutable abstract sets, collections.abc.Set (and a few others in Lib/_collections_abc.py) provide a classmethod(_from_iterable(Iterable[...]) -> Set[...]) (or similar) class m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefinite-state-machine
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/15298#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F15298
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%2F15298
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/15298
Reloadhttps://github.com/python/typeshed/issues/15298
Reloadhttps://github.com/python/typeshed/issues/15298
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/15298
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/15298
#15331https://github.com/python/typeshed/pull/15331
collections.abc.Set, etc., missing _from_iterable() classmethodhttps://github.com/python/typeshed/issues/15298#top
#15331https://github.com/python/typeshed/pull/15331
stubs: incompleteAnnotations or sub-modules missing from an existing package or modulehttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20incomplete%22
https://github.com/finite-state-machine
finite-state-machinehttps://github.com/finite-state-machine
on Jan 17, 2026https://github.com/python/typeshed/issues/15298#issue-3825427978
https://docs.python.org/3/library/collections.abc.html#examples-and-recipeshttps://docs.python.org/3/library/collections.abc.html#examples-and-recipes
finite-state-machinehttps://github.com/finite-state-machine
on Jan 17, 2026https://github.com/python/typeshed/issues/15298#event-22115272103
srittauhttps://github.com/srittau
stubs: incompleteAnnotations or sub-modules missing from an existing package or modulehttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20incomplete%22
on Jan 19, 2026https://github.com/python/typeshed/issues/15298#event-22141726294
https://github.com/srittau
srittauhttps://github.com/srittau
on Jan 19, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3768965444
documentationhttps://docs.python.org/3/library/collections.abc.html
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Feb 7, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3863990613
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Feb 7, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3864005881
@finite-state-machinehttps://github.com/finite-state-machine
@srittauhttps://github.com/srittau
python/cpython#144557https://github.com/python/cpython/issues/144557
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3890015510
https://github.com/srittau
srittauhttps://github.com/srittau
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3890077276
#15152https://github.com/python/typeshed/pull/15152
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3890164787
@srittauhttps://github.com/srittau
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3890237868
@randolf-scholzhttps://github.com/randolf-scholz
#15085https://github.com/python/typeshed/pull/15085
#13432 (comment)https://github.com/python/typeshed/issues/13432#issuecomment-2629016034
srittauhttps://github.com/srittau
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#15331https://github.com/python/typeshed/pull/15331
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#event-22731780494
https://github.com/srittau
srittauhttps://github.com/srittau
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3890275666
https://github.com/finite-state-machine
finite-state-machinehttps://github.com/finite-state-machine
on Feb 12, 2026https://github.com/python/typeshed/issues/15298#issuecomment-3891797831
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/15298
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/15298
stubs: incompleteAnnotations or sub-modules missing from an existing package or modulehttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20incomplete%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.