Title: threading: ExceptHookArgs funkiness · Issue #4767 · python/typeshed · GitHub
Open Graph Title: threading: ExceptHookArgs funkiness · Issue #4767 · python/typeshed
X Title: threading: ExceptHookArgs funkiness · Issue #4767 · python/typeshed
Description: The threading.excepthook variable (added in Python 3.8) accepts a threading.ExceptHookArgs argument (available at runtime). The typing around it in typeshed is not straightforward: typeshed/stdlib/2and3/threading.pyi Lines 157 to 164 in ...
Open Graph Description: The threading.excepthook variable (added in Python 3.8) accepts a threading.ExceptHookArgs argument (available at runtime). The typing around it in typeshed is not straightforward: typeshed/stdlib/...
X Description: The threading.excepthook variable (added in Python 3.8) accepts a threading.ExceptHookArgs argument (available at runtime). The typing around it in typeshed is not straightforward: typeshed/stdlib/...
Opengraph URL: https://github.com/python/typeshed/issues/4767
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"threading: ExceptHookArgs funkiness","articleBody":"The [`threading.excepthook`](https://docs.python.org/3/library/threading.html#threading.excepthook) variable (added in Python 3.8) accepts a `threading.ExceptHookArgs` argument (available at runtime). The typing around it in typeshed is not straightforward:\r\n\r\nhttps://github.com/python/typeshed/blob/8c20938ba1118a9214265d7b5ae4ce1db4e322a5/stdlib/2and3/threading.pyi#L157-L164\r\n\r\nSorry but I guess I have to ask :grinning: \r\n\r\nThe `_thread` part is:\r\n\r\nhttps://github.com/python/typeshed/blob/8c20938ba1118a9214265d7b5ae4ce1db4e322a5/stdlib/3/_thread.pyi#L30-L38\r\n\r\nMy practical issue is that this:\r\n\r\n```py\r\nimport threading\r\n\r\ndef my_hook(args: threading.ExceptHookArgs) -> None:\r\n ...\r\n```\r\n\r\nresults in\r\n\r\n```\r\nFunction \"_thread._ExceptHookArgs\" is not valid as a type [valid-type]\r\n```","author":{"url":"https://github.com/bluetech","@type":"Person","name":"bluetech"},"datePublished":"2020-11-13T21:32:33Z","url":"https://github.com/python/typeshed/issues/4767"}
| 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:b31470f9-1517-5bb4-2a56-a72b0d86d5fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A400:36D598:C353F3:104B506:6B004D42 |
| html-safe-nonce | 8721f60028bc3d44ce394940fa3f88369a05b324a8fe17b8be7ec1bb775cd809 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDAwOjM2RDU5ODpDMzUzRjM6MTA0QjUwNjo2QjAwNEQ0MiIsInZpc2l0b3JfaWQiOiI3MjgzNzc4NzE5MTc1NDI5NDQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f553b1eb6d4db378ead55dc941295f98809e1c929d7b1d6db87690221ae74e6f |
| hovercard-subject-tag | issue:742801378 |
| 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/4767/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22d33254845a36281b89b75775cfb6ac7c4b2cf664ff4bbc83d21531f4f50b68/python/typeshed/issues/4767 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22d33254845a36281b89b75775cfb6ac7c4b2cf664ff4bbc83d21531f4f50b68/python/typeshed/issues/4767 |
| og:image:alt | The threading.excepthook variable (added in Python 3.8) accepts a threading.ExceptHookArgs argument (available at runtime). The typing around it in typeshed is not straightforward: typeshed/stdlib/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bluetech |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width