Title: stdlib/importlib/machinery declares loaders to be instantiated, they should be classes · Issue #7085 · python/typeshed · GitHub
Open Graph Title: stdlib/importlib/machinery declares loaders to be instantiated, they should be classes · Issue #7085 · python/typeshed
X Title: stdlib/importlib/machinery declares loaders to be instantiated, they should be classes · Issue #7085 · python/typeshed
Description: class FileFinder(importlib.abc.PathEntryFinder): path: str def __init__(self, path: str, *loader_details: tuple[importlib.abc.Loader, list[str]]) -> None: ... @classmethod def path_hook( cls, *loader_details: tuple[importlib.abc.Loader, ...
Open Graph Description: class FileFinder(importlib.abc.PathEntryFinder): path: str def __init__(self, path: str, *loader_details: tuple[importlib.abc.Loader, list[str]]) -> None: ... @classmethod def path_hook( cls, *load...
X Description: class FileFinder(importlib.abc.PathEntryFinder): path: str def __init__(self, path: str, *loader_details: tuple[importlib.abc.Loader, list[str]]) -> None: ... @classmethod def path_hook( cls, *l...
Opengraph URL: https://github.com/python/typeshed/issues/7085
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stdlib/importlib/machinery declares loaders to be instantiated, they should be classes","articleBody":"```\r\nclass FileFinder(importlib.abc.PathEntryFinder):\r\n path: str\r\n def __init__(self, path: str, *loader_details: tuple[importlib.abc.Loader, list[str]]) -> None: ...\r\n @classmethod\r\n def path_hook(\r\n cls, *loader_details: tuple[importlib.abc.Loader, list[str]]\r\n ) -> Callable[[str], importlib.abc.PathEntryFinder]: ...\r\n```\r\nwhere both cases of `loader_details` should be `Tuple[Type[importlib.abc.Loader, list[str]]`, as the code itself will create a new instance of the loader passed in.\r\n\r\ncompared with python 3.10","author":{"url":"https://github.com/Spindel","@type":"Person","name":"Spindel"},"datePublished":"2022-01-30T14:11:23Z","url":"https://github.com/python/typeshed/issues/7085"}
| 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:a868e07e-5758-fa2f-9a83-fe6216bd704e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D688:177D5B:1CE884C:25475F6:6AFFC9CD |
| html-safe-nonce | 3357b03fb2f3b458e67b41cf9ceb11122099ba4d7511179b0b67a24564ede9b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjg4OjE3N0Q1QjoxQ0U4ODRDOjI1NDc1RjY6NkFGRkM5Q0QiLCJ2aXNpdG9yX2lkIjoiNDY4ODU3ODI3ODU1Njk0NDg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b21848945d089fc5515f6c8dce82cea08040130289fb67a250f0a10947280920 |
| hovercard-subject-tag | issue:1118548720 |
| 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/7085/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9550e90ae1ff8e54beaf51efeea090ecf730bf1a1c7d3f6c6b1b2ce21dd95c5c/python/typeshed/issues/7085 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9550e90ae1ff8e54beaf51efeea090ecf730bf1a1c7d3f6c6b1b2ce21dd95c5c/python/typeshed/issues/7085 |
| og:image:alt | class FileFinder(importlib.abc.PathEntryFinder): path: str def __init__(self, path: str, *loader_details: tuple[importlib.abc.Loader, list[str]]) -> None: ... @classmethod def path_hook( cls, *load... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Spindel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf |
| 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 | 8fa4a54e6871c7908eda1c246ad5972982c0b59d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width