Title: Is there a description of the mypy type checking algorithms? · Issue #1994 · python/mypy · GitHub
Open Graph Title: Is there a description of the mypy type checking algorithms? · Issue #1994 · python/mypy
X Title: Is there a description of the mypy type checking algorithms? · Issue #1994 · python/mypy
Description: Hi, I am just trying out mypy and have the following code in a file t.py: def f1(x:int) -> int: if x > 0: return 1 Running mypy t.py --strict-optional gives no error or warning. Am I missing something ? Also, are there some technical doc...
Open Graph Description: Hi, I am just trying out mypy and have the following code in a file t.py: def f1(x:int) -> int: if x > 0: return 1 Running mypy t.py --strict-optional gives no error or warning. Am I missing someth...
X Description: Hi, I am just trying out mypy and have the following code in a file t.py: def f1(x:int) -> int: if x > 0: return 1 Running mypy t.py --strict-optional gives no error or warning. Am I missing ...
Opengraph URL: https://github.com/python/mypy/issues/1994
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is there a description of the mypy type checking algorithms?","articleBody":"Hi, I am just trying out mypy and have the following code in a file `t.py`:\n\n```\ndef f1(x:int) -> int: \n if x > 0:\n return 1\n```\n\nRunning `mypy t.py --strict-optional` gives no error or warning. Am I missing something ? \n\nAlso, are there some technical documentations for mypy, e.g., what type inference and checking algorithms were used ? I saw some code about solving constraints in mypy, but I am more interested in a technical document. \n\nThanks,\n","author":{"url":"https://github.com/nguyenthanhvuh","@type":"Person","name":"nguyenthanhvuh"},"datePublished":"2016-08-07T07:40:20Z","url":"https://github.com/python/mypy/issues/1994"}
| 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:d0d935ab-83f5-2913-5aa6-4f1163aaeade |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D294:10F75B:10C32EF:1618D4A:6B000B61 |
| html-safe-nonce | cf52a9434674c3671113585a1fb7dacf5778f36a5a61e32c389328c01a627942 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjk0OjEwRjc1QjoxMEMzMkVGOjE2MThENEE6NkIwMDBCNjEiLCJ2aXNpdG9yX2lkIjoiNTQ1NzkzMjAwMzYwMzEyMzA0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e82c9f580a8b47094c61012191623cef0c06b50d90d969f61d1020bcf95a584 |
| hovercard-subject-tag | issue:169784702 |
| 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/1994/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed09dc05948b0252f379238dc60109d171b84083cfc32624a8764519261b4a15/python/mypy/issues/1994 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed09dc05948b0252f379238dc60109d171b84083cfc32624a8764519261b4a15/python/mypy/issues/1994 |
| og:image:alt | Hi, I am just trying out mypy and have the following code in a file t.py: def f1(x:int) -> int: if x > 0: return 1 Running mypy t.py --strict-optional gives no error or warning. Am I missing someth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nguyenthanhvuh |
| 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