Title: Problems caused by isinstance(list[int], type) returning True · Issue #89828 · python/cpython · GitHub
Open Graph Title: Problems caused by isinstance(list[int], type) returning True · Issue #89828 · python/cpython
X Title: Problems caused by isinstance(list[int], type) returning True · Issue #89828 · python/cpython
Description: BPO 45665 Nosy @gvanrossum, @serhiy-storchaka, @wyfo, @Fidget-Spinner, @AlexWaygood, @martinitus Dependencies bpo-40296: help(list[int]) failsbpo-45438: inspect not capturing type annotations created by class_getitembpo-45662: Incorrect ...
Open Graph Description: BPO 45665 Nosy @gvanrossum, @serhiy-storchaka, @wyfo, @Fidget-Spinner, @AlexWaygood, @martinitus Dependencies bpo-40296: help(list[int]) failsbpo-45438: inspect not capturing type annotations creat...
X Description: BPO 45665 Nosy @gvanrossum, @serhiy-storchaka, @wyfo, @Fidget-Spinner, @AlexWaygood, @martinitus Dependencies bpo-40296: help(list[int]) failsbpo-45438: inspect not capturing type annotations creat...
Opengraph URL: https://github.com/python/cpython/issues/89828
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems caused by isinstance(list[int], type) returning True","articleBody":"BPO | [45665](https://bugs.python.org/issue45665)\r\n--- | :---\r\nNosy | @gvanrossum, @serhiy-storchaka, @wyfo, @Fidget-Spinner, @AlexWaygood, @martinitus\r\nDependencies | \u003cli\u003ebpo-40296: help(list[int]) fails\u003c/li\u003e\u003cli\u003ebpo-45438: inspect not capturing type annotations created by __class_getitem__\u003c/li\u003e\u003cli\u003ebpo-45662: Incorrect repr of InitVar of a type alias\u003c/li\u003e\u003cli\u003ebpo-45663: is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias\u003c/li\u003e\u003cli\u003ebpo-45664: resolve_bases() and new_class() do not work with type alias of a built-in type\u003c/li\u003e\u003cli\u003ebpo-46032: functools\u0026#x27; singledispatch does not support GenericAlias\u003c/li\u003e\r\n\r\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\r\n\r\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\r\n\r\nGitHub fields:\r\n```python\r\nassignee = None\r\nclosed_at = None\r\ncreated_at = \u003cDate 2021-10-29.08:27:43.950\u003e\r\nlabels = ['type-bug', 'library', '3.9', '3.10', '3.11']\r\ntitle = 'Problems caused by isinstance(list[int], type) returning True'\r\nupdated_at = \u003cDate 2022-01-06.16:58:47.655\u003e\r\nuser = 'https://github.com/serhiy-storchaka'\r\n```\r\n\r\nbugs.python.org fields:\r\n```python\r\nactivity = \u003cDate 2022-01-06.16:58:47.655\u003e\r\nactor = 'AlexWaygood'\r\nassignee = 'none'\r\nclosed = False\r\nclosed_date = None\r\ncloser = None\r\ncomponents = ['Library (Lib)']\r\ncreation = \u003cDate 2021-10-29.08:27:43.950\u003e\r\ncreator = 'serhiy.storchaka'\r\ndependencies = ['40296', '45438', '45662', '45663', '45664', '46032']\r\nfiles = []\r\nhgrepos = []\r\nissue_num = 45665\r\nkeywords = []\r\nmessage_count = 17.0\r\nmessages = ['405290', '405291', '405427', '405429', '408207', '409167', '409233', '409679', '409691', '409694', '409697', '409701', '409702', '409703', '409711', '409792', '409881']\r\nnosy_count = 6.0\r\nnosy_names = ['gvanrossum', 'serhiy.storchaka', 'joperez', 'kj', 'AlexWaygood', 'martinitus']\r\npr_nums = []\r\npriority = 'normal'\r\nresolution = None\r\nstage = None\r\nstatus = 'open'\r\nsuperseder = None\r\ntype = 'behavior'\r\nurl = 'https://bugs.python.org/issue45665'\r\nversions = ['Python 3.9', 'Python 3.10', 'Python 3.11']\r\n```\r\n\r\n\u003c/p\u003e\u003c/details\u003e\r\n\r\n- [x] #84476\r\n- [x] #89601\r\n- [x] #89825\r\n- [x] #89826\r\n- [x] #89827\r\n- [x] #90190\r\n- [x] #93847","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2021-10-29T08:27:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/89828/cpython/issues/89828"}
| 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:29f9e0d0-22e4-888e-f2a0-ad54c4f668aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACDE:274FD0:AF58E9:EED895:69697DE4 |
| html-safe-nonce | 67080637ac439a4589f249b982f25b5e9706ef8146556e81e9587df8671ebbf9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0RFOjI3NEZEMDpBRjU4RTk6RUVEODk1OjY5Njk3REU0IiwidmlzaXRvcl9pZCI6IjE2ODY2Njk5NzI4NTYyMDg4NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 25180ffe3de31eb3fb24b1ec1cfab18a4b7b6a4a69656f0b264b1d6c7a82c222 |
| hovercard-subject-tag | issue:1199068328 |
| 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/cpython/89828/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d97c8c44b39d936879afd5205f3cc6a0618cc41938f4cf708125fcc72197fd5f/python/cpython/issues/89828 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d97c8c44b39d936879afd5205f3cc6a0618cc41938f4cf708125fcc72197fd5f/python/cpython/issues/89828 |
| og:image:alt | BPO 45665 Nosy @gvanrossum, @serhiy-storchaka, @wyfo, @Fidget-Spinner, @AlexWaygood, @martinitus Dependencies bpo-40296: help(list[int]) failsbpo-45438: inspect not capturing type annotations creat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width