Title: List[
Open Graph Title: List[
X Title: List[
Description: Hello, Already showed this in Gitter and was told to open the issue here. My env is Win7P+SP1 x64, Py 3.5.2 32b and mypy 0.501. I have the following situation: With the following code mypy doesn't return an error (which is correct): from...
Open Graph Description: Hello, Already showed this in Gitter and was told to open the issue here. My env is Win7P+SP1 x64, Py 3.5.2 32b and mypy 0.501. I have the following situation: With the following code mypy doesn't ...
X Description: Hello, Already showed this in Gitter and was told to open the issue here. My env is Win7P+SP1 x64, Py 3.5.2 32b and mypy 0.501. I have the following situation: With the following code mypy doesn...
Opengraph URL: https://github.com/python/mypy/issues/3283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"List[\u003cnothing>] error","articleBody":"Hello,\r\n\r\nAlready showed this in Gitter and was told to open the issue here.\r\nMy env is Win7P+SP1 x64, Py 3.5.2 32b and mypy 0.501.\r\n\r\nI have the following situation:\r\n\r\nWith the following code mypy doesn't return an error (which is correct):\r\n\r\n```\r\nfrom datetime import datetime, timedelta\r\n\r\ndata_dic = {idx: []\r\n for idx in range(len(lcl.msgs['DATA_COL_NAMES']) - 1)} # type: Dict[int, List[Union[datetime, float]]]\r\n\r\n```\r\n\r\nBut with the following code mypy returns a strange error\r\n\r\n```\r\nfrom datetime import datetime, timedelta\r\n\r\ndata_dic = {idx: []\r\n for idx in range(len(lcl.msgs['DATA_COL_NAMES']) - 1)} # type: Dict[int, Union[List[datetime], List[float]]]\r\n\r\nrtg_main.py:197: error: Value expression in dictionary comprehension has incompatible type List[\u003cuninhabited>]; expected type \"Union[List[datetime], List[float]]\"\r\n```\r\n\r\nBest regards,\r\n\r\nJM\r\n","author":{"url":"https://github.com/jcrmatos","@type":"Person","name":"jcrmatos"},"datePublished":"2017-04-29T08:10:27Z","url":"https://github.com/python/mypy/issues/3283"}
| 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:62510f34-843a-5f3a-0270-d1b7e0a9a195 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9C2:1CF166:180957A:205C8D8:6AFFF159 |
| html-safe-nonce | d2d2ce785bda4cf816dfd7f467a273a1691b6caf15bbed4c6a2960729c30e837 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUMyOjFDRjE2NjoxODA5NTdBOjIwNUM4RDg6NkFGRkYxNTkiLCJ2aXNpdG9yX2lkIjoiMjkyODk3MzQwNjIzMTU4OTIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 190e1a243f72b3bf811b1e2dc670f447ce9a78a236321d24a983e4a7afe41805 |
| hovercard-subject-tag | issue:225242184 |
| 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/3283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/25ad2c46352c71b0ae0e6c2338c8b80c73ad8c0ed740468174edf1e6cc105d29/python/mypy/issues/3283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25ad2c46352c71b0ae0e6c2338c8b80c73ad8c0ed740468174edf1e6cc105d29/python/mypy/issues/3283 |
| og:image:alt | Hello, Already showed this in Gitter and was told to open the issue here. My env is Win7P+SP1 x64, Py 3.5.2 32b and mypy 0.501. I have the following situation: With the following code mypy doesn't ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jcrmatos |
| 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