Title: Add support for per-module enabling/disabling of error codes · Issue #9440 · python/mypy · GitHub
Open Graph Title: Add support for per-module enabling/disabling of error codes · Issue #9440 · python/mypy
X Title: Add support for per-module enabling/disabling of error codes · Issue #9440 · python/mypy
Description: Feature #9172 implemented global error code disabling/enabling as discussed in #8975. It seems like it was always the intention to consider per-module configuration (#8975 (comment)), but we don't currently have an open issue for it. Pit...
Open Graph Description: Feature #9172 implemented global error code disabling/enabling as discussed in #8975. It seems like it was always the intention to consider per-module configuration (#8975 (comment)), but we don't ...
X Description: Feature #9172 implemented global error code disabling/enabling as discussed in #8975. It seems like it was always the intention to consider per-module configuration (#8975 (comment)), but we don...
Opengraph URL: https://github.com/python/mypy/issues/9440
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for per-module enabling/disabling of error codes","articleBody":"**Feature**\r\n\r\n#9172 implemented global error code disabling/enabling as discussed in #8975. It seems like it was always the intention to consider per-module configuration (https://github.com/python/mypy/issues/8975#issuecomment-641167533), but we don't currently have an open issue for it.\r\n\r\n**Pitch**\r\n\r\nMy personal use case is for tests. Typing tests is often just a chore, but it's nice to have whatever type safety you can get for free. I'd want to be able to do:\r\n```\r\n[mypy]\r\nstrict = True\r\n\r\n[mypy-tests.*]\r\nallow_untyped_defs = True\r\nallow_untyped_calls = True\r\ndisable_error_codes = [\"var-annotated\"]\r\n```\r\n(For this use case, I think there's actually a fair argument to be made that we should suppress var-annotated aka \"needs type annotation\" errors when checking untyped defs. If this strikes you as reasonable, I can open another issue. Edit: see #8558 for this)\r\n","author":{"url":"https://github.com/hauntsaninja","@type":"Person","name":"hauntsaninja"},"datePublished":"2020-09-13T22:01:20Z","url":"https://github.com/python/mypy/issues/9440"}
| 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:99566f48-2ea5-4eac-c2e8-61c1bebcbc47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA10:1D18A:5718CA:76E24B:6B00747A |
| html-safe-nonce | a1a285eddf4b7e86e264f1fb04fc983b7d471dd4be8d69ba18d4db24bef96367 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTEwOjFEMThBOjU3MThDQTo3NkUyNEI6NkIwMDc0N0EiLCJ2aXNpdG9yX2lkIjoiODg2NDc2MDk5NTQ5MTM3ODI5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e6533d5f05ded3107b0d746c1ef9e397dff51396f65e44d440e39cf15b2e5a74 |
| hovercard-subject-tag | issue:700656887 |
| 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/9440/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14ef6215ca32f31e798ab3cfcc5de2b295e357d6598994ab3b2a5c92e01c896d/python/mypy/issues/9440 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14ef6215ca32f31e798ab3cfcc5de2b295e357d6598994ab3b2a5c92e01c896d/python/mypy/issues/9440 |
| og:image:alt | Feature #9172 implemented global error code disabling/enabling as discussed in #8975. It seems like it was always the intention to consider per-module configuration (#8975 (comment)), but we don't ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hauntsaninja |
| hostname | github.com |
| expected-hostname | github.com |
| None | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| 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 | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width