Title: Crash on super call in function with type variable · Issue #2361 · python/mypy · GitHub
Open Graph Title: Crash on super call in function with type variable · Issue #2361 · python/mypy
X Title: Crash on super call in function with type variable · Issue #2361 · python/mypy
Description: #2193 causes a crash when calling super in function which takes a generic argument (even if the generic argument is unused). Here's the minimum reproducer I've found: from typing import TypeVar T = TypeVar('T', int, str) class A: pass cl...
Open Graph Description: #2193 causes a crash when calling super in function which takes a generic argument (even if the generic argument is unused). Here's the minimum reproducer I've found: from typing import TypeVar T =...
X Description: #2193 causes a crash when calling super in function which takes a generic argument (even if the generic argument is unused). Here's the minimum reproducer I've found: from typing import Typ...
Opengraph URL: https://github.com/python/mypy/issues/2361
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash on super call in function with type variable","articleBody":"#2193 causes a crash when calling `super` in function which takes a generic argument (even if the generic argument is unused). Here's the minimum reproducer I've found:\n\n``` py\nfrom typing import TypeVar\n\nT = TypeVar('T', int, str)\n\nclass A:\n pass\n\nclass B(A):\n def __init__(self, arg):\n # type: (T) -> None\n super(B, self).__init__()\n```\n\n@JukkaL @elazarg could you take a look?\n","author":{"url":"https://github.com/ddfisher","@type":"Person","name":"ddfisher"},"datePublished":"2016-10-28T00:08:20Z","url":"https://github.com/python/mypy/issues/2361"}
| 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:dc4ff490-b1ae-cf1c-9ec5-6eccc088a016 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC68:197995:1AE7732:243CCAA:6AFFFF22 |
| html-safe-nonce | 2e8d4b3d4fe84fb6301b18346ee513ef0ae576fd96c42e02f3f3fa6bec5ac6ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzY4OjE5Nzk5NToxQUU3NzMyOjI0M0NDQUE6NkFGRkZGMjIiLCJ2aXNpdG9yX2lkIjoiNjEwNTg3NDgzMjkxNjc0MTkyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd91477d1c0884339f4e4d6880bd1e4f9acf6b7f4d0df2f3d3baa1a5a4398dc1 |
| hovercard-subject-tag | issue:185810320 |
| 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/mypy/2361/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9af4e88cca776c5363aac635821287178d5e46469ce84b999c263825daf2c9d/python/mypy/issues/2361 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9af4e88cca776c5363aac635821287178d5e46469ce84b999c263825daf2c9d/python/mypy/issues/2361 |
| og:image:alt | #2193 causes a crash when calling super in function which takes a generic argument (even if the generic argument is unused). Here's the minimum reproducer I've found: from typing import TypeVar T =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ddfisher |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width