Title: Update docs for "Import cycles" to refer to TYPE_CHECKING · Issue #2178 · python/mypy · GitHub
Open Graph Title: Update docs for "Import cycles" to refer to TYPE_CHECKING · Issue #2178 · python/mypy
X Title: Update docs for "Import cycles" to refer to TYPE_CHECKING · Issue #2178 · python/mypy
Description: On the following page: http://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles It is mentioned: It is possible that in the future, mypy will change its dead code analysis and this trick will stop working. We will then offer...
Open Graph Description: On the following page: http://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles It is mentioned: It is possible that in the future, mypy will change its dead code analysis and this tri...
X Description: On the following page: http://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles It is mentioned: It is possible that in the future, mypy will change its dead code analysis and this tri...
Opengraph URL: https://github.com/python/mypy/issues/2178
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update docs for \"Import cycles\" to refer to TYPE_CHECKING","articleBody":"On the following page:\n- http://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles\n\nIt is mentioned:\n\n> It is possible that in the future, mypy will change its dead code analysis and this trick will stop working. We will then offer an alternative, e.g. a constant defined by the typing module that is False at runtime but True while type checking.\n\nThe aforementioned constant now exists in the form of `typing.TYPE_CHECKING`. It might be useful to update the docs to refer to it, including in the example.\n\nI could put a docs patch together if this is the correct approach.\n","author":{"url":"https://github.com/davidfstr","@type":"Person","name":"davidfstr"},"datePublished":"2016-09-24T05:58:41Z","url":"https://github.com/python/mypy/issues/2178"}
| 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:af848760-c007-085b-da00-8603dbc7a31b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D8C:26206F:33914AE:444D1BA:6B003A81 |
| html-safe-nonce | fbe3a251ab36b7a2deaf33f12f7acb28394d75a22f011dcf2e50f5a3e103cdc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDhDOjI2MjA2RjozMzkxNEFFOjQ0NEQxQkE6NkIwMDNBODEiLCJ2aXNpdG9yX2lkIjoiMjMwNzcyODY0MzM4NTczNTgxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | de5f5e009dbe0c9861f39051a645388fe7865ddfe7ca699a642ca5c9fdaa773c |
| hovercard-subject-tag | issue:179013379 |
| 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/2178/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9aa3ebdce33e7b080e7f6400ab633fe69911703ca3051dbf4584430ddae23202/python/mypy/issues/2178 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9aa3ebdce33e7b080e7f6400ab633fe69911703ca3051dbf4584430ddae23202/python/mypy/issues/2178 |
| og:image:alt | On the following page: http://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles It is mentioned: It is possible that in the future, mypy will change its dead code analysis and this tri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidfstr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width