Title: Stub for time.gmtime() looks incorrect · Issue #3286 · python/typeshed · GitHub
Open Graph Title: Stub for time.gmtime() looks incorrect · Issue #3286 · python/typeshed
X Title: Stub for time.gmtime() looks incorrect · Issue #3286 · python/typeshed
Description: The following code: from time import gmtime (a, b, c, d, e, f, g, h, i) = gmtime() print(a, b, c, d, e, f, g, h, i) produces the following output: $ python3 Test.py 2019 9 30 16 29 49 0 273 0 $ mypy Test.py Test.py:3: error: Too many val...
Open Graph Description: The following code: from time import gmtime (a, b, c, d, e, f, g, h, i) = gmtime() print(a, b, c, d, e, f, g, h, i) produces the following output: $ python3 Test.py 2019 9 30 16 29 49 0 273 0 $ myp...
X Description: The following code: from time import gmtime (a, b, c, d, e, f, g, h, i) = gmtime() print(a, b, c, d, e, f, g, h, i) produces the following output: $ python3 Test.py 2019 9 30 16 29 49 0 273 0 $ myp...
Opengraph URL: https://github.com/python/typeshed/issues/3286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stub for time.gmtime() looks incorrect","articleBody":"The following code:\r\n```python3\r\nfrom time import gmtime\r\n(a, b, c, d, e, f, g, h, i) = gmtime()\r\nprint(a, b, c, d, e, f, g, h, i)\r\n```\r\nproduces the following output:\r\n```\r\n$ python3 Test.py \r\n2019 9 30 16 29 49 0 273 0\r\n$ mypy Test.py\r\nTest.py:3: error: Too many values to unpack (9 expected, 11 provided)\r\n\r\n$ mypy --version\r\nmypy 0.730\r\n$ python3 --version\r\nPython 3.6.8\r\n```\r\n`reveal_type(gmtime)` produces the following output:\r\n`Revealed type is 'def (secs: Union[builtins.float, None] =) -> Tuple[builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.str, builtins.int, fallback=time.struct_time]`\r\n","author":{"url":"https://github.com/jolaf","@type":"Person","name":"jolaf"},"datePublished":"2019-09-30T19:38:55Z","url":"https://github.com/python/typeshed/issues/3286"}
| 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:ffe2ecae-7a91-e60c-090e-b40226a2a0f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A64A:1334EF:10F9A92:1656589:6B000B31 |
| html-safe-nonce | b5c047d55a7de12050cd91437c4471760b6013e3f8d9979bd6ddc185cfe937a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjRBOjEzMzRFRjoxMEY5QTkyOjE2NTY1ODk6NkIwMDBCMzEiLCJ2aXNpdG9yX2lkIjoiNzQ4OTIyMzU4NzgxMTgyMjM4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd18bca31d3509e0b7ded8e6cfaaf03fc3ac71680f14d245dd581b00f0c3bbfc |
| hovercard-subject-tag | issue:500481154 |
| 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/3286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26738e4f4f77a89d4e75218f896e39201c521951b6ef8fc01c39a994c6c663b0/python/typeshed/issues/3286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26738e4f4f77a89d4e75218f896e39201c521951b6ef8fc01c39a994c6c663b0/python/typeshed/issues/3286 |
| og:image:alt | The following code: from time import gmtime (a, b, c, d, e, f, g, h, i) = gmtime() print(a, b, c, d, e, f, g, h, i) produces the following output: $ python3 Test.py 2019 9 30 16 29 49 0 273 0 $ myp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jolaf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width