Title: `int` is not compatable with `float` · Issue #11145 · python/mypy · GitHub
Open Graph Title: `int` is not compatable with `float` · Issue #11145 · python/mypy
X Title: `int` is not compatable with `float` · Issue #11145 · python/mypy
Description: https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html int is duck type compatible with float No it's not: f: float = 1 f.is_integer()
Open Graph Description: https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html int is duck type compatible with float No it's not: f: float = 1 f.is_integer()
X Description: https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html int is duck type compatible with float No it's not: f: float = 1 f.is_integer()
Opengraph URL: https://github.com/python/mypy/issues/11145
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`int` is not compatable with `float`","articleBody":"https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html\r\n> `int` is duck type compatible with `float`\r\n\r\nNo it's not:\r\n```py\r\nf: float = 1\r\nf.is_integer()\r\n```\r\n\r\n","author":{"url":"https://github.com/KotlinIsland","@type":"Person","name":"KotlinIsland"},"datePublished":"2021-09-19T04:04:39Z","url":"https://github.com/python/mypy/issues/11145"}
| 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:fb605010-d97d-8f3c-8f52-3b1fa9bc7049 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDF8:637AF:53FB0:72BF4:6B004E61 |
| html-safe-nonce | 22c86383fb7f1212d4a6988037f63cc59cf183b44ac67d7975721e0868ef924e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREY4OjYzN0FGOjUzRkIwOjcyQkY0OjZCMDA0RTYxIiwidmlzaXRvcl9pZCI6Ijc0MTE1NjI4Njk2MzM4NjMyNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 390646a509f64eb913465f094b4a460ba96639b5716e1bf5588d154f88cae0c8 |
| hovercard-subject-tag | issue:1000201020 |
| 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/11145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7097e519f6d371d0cde6f99eb563d478a63032f229ac35260df20c0dd668590/python/mypy/issues/11145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7097e519f6d371d0cde6f99eb563d478a63032f229ac35260df20c0dd668590/python/mypy/issues/11145 |
| og:image:alt | https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html int is duck type compatible with float No it's not: f: float = 1 f.is_integer() |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KotlinIsland |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width