Title: Should `importlib.util.spec_from_loader` use a `Protocol` for the `loader` parameter ? · Issue #11882 · python/typeshed · GitHub
Open Graph Title: Should `importlib.util.spec_from_loader` use a `Protocol` for the `loader` parameter ? · Issue #11882 · python/typeshed
X Title: Should `importlib.util.spec_from_loader` use a `Protocol` for the `loader` parameter ? · Issue #11882 · python/typeshed
Description: Essentially a question asked by @abravalheri at https://github.com/pypa/setuptools/pull/4246/files#r1593000435 . Should importlib.util.spec_from_loader use a Protocol for the loader parameter ? Would it make sense for pkg_resources.exter...
Open Graph Description: Essentially a question asked by @abravalheri at https://github.com/pypa/setuptools/pull/4246/files#r1593000435 . Should importlib.util.spec_from_loader use a Protocol for the loader parameter ? Wou...
X Description: Essentially a question asked by @abravalheri at https://github.com/pypa/setuptools/pull/4246/files#r1593000435 . Should importlib.util.spec_from_loader use a Protocol for the loader parameter ? Wou...
Opengraph URL: https://github.com/python/typeshed/issues/11882
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should `importlib.util.spec_from_loader` use a `Protocol` for the `loader` parameter ?","articleBody":"Essentially a question asked by @abravalheri at https://github.com/pypa/setuptools/pull/4246/files#r1593000435 .\r\n1. Should `importlib.util.spec_from_loader` use a `Protocol` for the `loader` parameter ?\r\n2. Would it make sense for `pkg_resources.extern.VendorImporter` and `setuptools.extern.VendorImporter` to subclass `importlib.abc.Loader` ?\r\n3. Just `type: ignore[arg-type]` the call to `importlib.util.spec_from_loader` ?","author":{"url":"https://github.com/Avasam","@type":"Person","name":"Avasam"},"datePublished":"2024-05-09T23:20:44Z","url":"https://github.com/python/typeshed/issues/11882"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4e1017b1-438f-db97-e41f-8aec4a5331d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC20:BBAAA:259127:32B61A:6B00C106 |
| html-safe-nonce | 2b77686249489173cb3abf4b51db8b4982c304c410d3986ac99b8883419e87d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzIwOkJCQUFBOjI1OTEyNzozMkI2MUE6NkIwMEMxMDYiLCJ2aXNpdG9yX2lkIjoiNzAyMDE5MDM2MTQwMjI2MTc2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a9d0f6b712d179b890f72f5c37d141adb58f54264a02ce13d1c94e99e25eccfb |
| hovercard-subject-tag | issue:2288612923 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/11882/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f19ac8ee8bd2d159a5bd4aae2d12f4709c72168f0053a5f522a7a95685459c94/python/typeshed/issues/11882 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f19ac8ee8bd2d159a5bd4aae2d12f4709c72168f0053a5f522a7a95685459c94/python/typeshed/issues/11882 |
| og:image:alt | Essentially a question asked by @abravalheri at https://github.com/pypa/setuptools/pull/4246/files#r1593000435 . Should importlib.util.spec_from_loader use a Protocol for the loader parameter ? Wou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Avasam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width