Title: Replace `type` with `Type[...]` in various stubs · Issue #343 · python/typeshed · GitHub
Open Graph Title: Replace `type` with `Type[...]` in various stubs · Issue #343 · python/typeshed
X Title: Replace `type` with `Type[...]` in various stubs · Issue #343 · python/typeshed
Description: Now that we have Type[C] in PEP 484, many places where stubs currently use type they can be more precise. E.g. if an argument must be an exception class, Type[BaseException] is more appropriate. This would be an easy task (but don't do m...
Open Graph Description: Now that we have Type[C] in PEP 484, many places where stubs currently use type they can be more precise. E.g. if an argument must be an exception class, Type[BaseException] is more appropriate. Th...
X Description: Now that we have Type[C] in PEP 484, many places where stubs currently use type they can be more precise. E.g. if an argument must be an exception class, Type[BaseException] is more appropriate. Th...
Opengraph URL: https://github.com/python/typeshed/issues/343
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replace `type` with `Type[...]` in various stubs","articleBody":"Now that we have `Type[C]` in PEP 484, many places where stubs currently use `type` they can be more precise. E.g. if an argument must be an exception class, `Type[BaseException]` is more appropriate.\n\nThis would be an easy task (but don't do many unrelated modules in one big PR -- small PRs are much easier to review and merge and don't get stale as quickly).\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-07-05T15:55:48Z","url":"https://github.com/python/typeshed/issues/343"}
| 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:83ebf867-9614-1ee5-b3aa-e6e199b3744a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD00:197995:2AB75B9:3A35B70:6B0051F3 |
| html-safe-nonce | 9b42ec4701c86d95d6f133cf00dd81292706e41c8b07a8135215974b4ddf05ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDAwOjE5Nzk5NToyQUI3NUI5OjNBMzVCNzA6NkIwMDUxRjMiLCJ2aXNpdG9yX2lkIjoiMjgwMjQxNzg2NTUyNzkzOTU3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0b9aa69e07551004ce75044108c809cdbdd8b288fa1541cdf40f49b26e9dcc2 |
| hovercard-subject-tag | issue:163884953 |
| 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/343/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40e68f0cc70b55522615f1b793e4f91b4b6023c084e753b67b4c7fc34d40ddb8/python/typeshed/issues/343 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40e68f0cc70b55522615f1b793e4f91b4b6023c084e753b67b4c7fc34d40ddb8/python/typeshed/issues/343 |
| og:image:alt | Now that we have Type[C] in PEP 484, many places where stubs currently use type they can be more precise. E.g. if an argument must be an exception class, Type[BaseException] is more appropriate. Th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width