Title: @typing.no_type_check_decorator is nonfunctional · Issue #6583 · python/mypy · GitHub
Open Graph Title: @typing.no_type_check_decorator is nonfunctional · Issue #6583 · python/mypy
X Title: @typing.no_type_check_decorator is nonfunctional · Issue #6583 · python/mypy
Description: from typing import no_type_check, no_type_check_decorator @no_type_check_decorator def test(fn): return fn @test def blah(x: {'x': 1}): pass @no_type_check def blah2(x: {'x': 1}): pass $ mypy notypecheck.py notypecheck.py:1: error: Modul...
Open Graph Description: from typing import no_type_check, no_type_check_decorator @no_type_check_decorator def test(fn): return fn @test def blah(x: {'x': 1}): pass @no_type_check def blah2(x: {'x': 1}): pass $ mypy notyp...
X Description: from typing import no_type_check, no_type_check_decorator @no_type_check_decorator def test(fn): return fn @test def blah(x: {'x': 1}): pass @no_type_check def blah2(x: {'x': 1}): p...
Opengraph URL: https://github.com/python/mypy/issues/6583
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@typing.no_type_check_decorator is nonfunctional","articleBody":"```\r\nfrom typing import no_type_check, no_type_check_decorator\r\n\r\n@no_type_check_decorator\r\ndef test(fn):\r\n return fn\r\n\r\n@test\r\ndef blah(x: {'x': 1}):\r\n pass\r\n\r\n@no_type_check\r\ndef blah2(x: {'x': 1}):\r\n pass\r\n```\r\n\r\n```\r\n$ mypy notypecheck.py \r\nnotypecheck.py:1: error: Module 'typing' has no attribute 'no_type_check_decorator'\r\nnotypecheck.py:8: error: Invalid type comment or annotation\r\n```\r\n\r\nI think this firstly needs a typeshed stub, but I think it won't work without special case support in mypy as well.\r\n\r\nRelated: https://github.com/python/typeshed/issues/2884","author":{"url":"https://github.com/lunixbochs","@type":"Person","name":"lunixbochs"},"datePublished":"2019-03-22T19:34:33Z","url":"https://github.com/python/mypy/issues/6583"}
| 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:58981243-19b6-2fd4-e8b8-f1d4f3f8113d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB82:26DF39:3E6F3E:5332AE:6B00A16D |
| html-safe-nonce | 7ff73ac892ec4f22c60260c4ece4d9a0f6be08ded4ff0678cd2aa18b6463c05f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjgyOjI2REYzOTozRTZGM0U6NTMzMkFFOjZCMDBBMTZEIiwidmlzaXRvcl9pZCI6IjQ5NDIwODg3ODMzMzI5NDIxODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 21724bfd250331991d3970cf840b1dc51b45400dd49533f503f238c7559e86e8 |
| hovercard-subject-tag | issue:424369299 |
| 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/6583/issue_layout |
| twitter:image | https://opengraph.githubassets.com/332267ca3017b99ddd0484aa703ec785249fad9b24a24ba82be55a5c5f2ae881/python/mypy/issues/6583 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/332267ca3017b99ddd0484aa703ec785249fad9b24a24ba82be55a5c5f2ae881/python/mypy/issues/6583 |
| og:image:alt | from typing import no_type_check, no_type_check_decorator @no_type_check_decorator def test(fn): return fn @test def blah(x: {'x': 1}): pass @no_type_check def blah2(x: {'x': 1}): pass $ mypy notyp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lunixbochs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8 |
| 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 | 1c9ddec8215f9a94e295c8310c3579b9c54ba31a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width