Title: pow float return value is Any in 0.950 · Issue #7733 · python/typeshed · GitHub
Open Graph Title: pow float return value is Any in 0.950 · Issue #7733 · python/typeshed
X Title: pow float return value is Any in 0.950 · Issue #7733 · python/typeshed
Description: Bug Report I upgraded to mypy 0.950 today and ran into the following error involving function return types: To Reproduce # x.py def fn(x: float = 8.9) -> float: return 2 ** x # error: Returning Any from function declared to return "float...
Open Graph Description: Bug Report I upgraded to mypy 0.950 today and ran into the following error involving function return types: To Reproduce # x.py def fn(x: float = 8.9) -> float: return 2 ** x # error: Returning Any...
X Description: Bug Report I upgraded to mypy 0.950 today and ran into the following error involving function return types: To Reproduce # x.py def fn(x: float = 8.9) -> float: return 2 ** x # error: Returning ...
Opengraph URL: https://github.com/python/typeshed/issues/7733
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pow float return value is Any in 0.950","articleBody":"**Bug Report**\r\n\r\nI upgraded to mypy 0.950 today and ran into the following error involving function return types:\r\n\r\n**To Reproduce**\r\n\r\n```\r\n# x.py\r\ndef fn(x: float = 8.9) -> float:\r\n return 2 ** x # error: Returning Any from function declared to return \"float\" [no-any-return]\r\n```\r\n\r\n**Expected Behavior**\r\n\r\nExpected this to pass cleanly.\r\n\r\n**Actual Behavior**\r\n\r\nI'm not sure why this now returns Any.\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 0.950\r\n- Mypy configuration options from `mypy.ini` (and other config files): strict = True\r\n- Python version used: Python 3.10.0\r\n- Operating system and version: Mac OSX\r\n","author":{"url":"https://github.com/TylerYep","@type":"Person","name":"TylerYep"},"datePublished":"2022-04-28T07:28:21Z","url":"https://github.com/python/typeshed/issues/7733"}
| 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:12146062-69bc-a95b-58cb-f363de631c82 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D702:07D0:1885175:2068FF6:6B002BCC |
| html-safe-nonce | 9dca214a7f26042298f5273bcd60fc9be6278e16b2ad24b8f89630c051a343db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzAyOjA3RDA6MTg4NTE3NToyMDY4RkY2OjZCMDAyQkNDIiwidmlzaXRvcl9pZCI6IjU1MTczOTIzMjU0MTc5MDUxMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 48c3c7fffaae7b48d3dda76af831cf0a111f56db9a2bf56ef590a495b996b352 |
| hovercard-subject-tag | issue:1218617422 |
| 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/7733/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f7d869bb5655ac70543f69fdc4c72e757e1b673b071d4d2f3b9a8e2d2e8eccc/python/typeshed/issues/7733 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f7d869bb5655ac70543f69fdc4c72e757e1b673b071d4d2f3b9a8e2d2e8eccc/python/typeshed/issues/7733 |
| og:image:alt | Bug Report I upgraded to mypy 0.950 today and ran into the following error involving function return types: To Reproduce # x.py def fn(x: float = 8.9) -> float: return 2 ** x # error: Returning Any... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TylerYep |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width