Title: stubtest does not correctly handle `disable_error_code` option when `--mypy-config-file` is supplied · Issue #17628 · python/mypy · GitHub
Open Graph Title: stubtest does not correctly handle `disable_error_code` option when `--mypy-config-file` is supplied · Issue #17628 · python/mypy
X Title: stubtest does not correctly handle `disable_error_code` option when `--mypy-config-file` is supplied · Issue #17628 · python/mypy
Description: When --mypy-config-file is passed to stubtest is uses parse_config_file function. Which does not handle disable_error_code setting correctly. Since it is done in another place (mypy/main.py): mypy/mypy/main.py Lines 1339 to 1353 in a0dbb...
Open Graph Description: When --mypy-config-file is passed to stubtest is uses parse_config_file function. Which does not handle disable_error_code setting correctly. Since it is done in another place (mypy/main.py): mypy/...
X Description: When --mypy-config-file is passed to stubtest is uses parse_config_file function. Which does not handle disable_error_code setting correctly. Since it is done in another place (mypy/main.py): mypy/...
Opengraph URL: https://github.com/python/mypy/issues/17628
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stubtest does not correctly handle `disable_error_code` option when `--mypy-config-file` is supplied","articleBody":"When `--mypy-config-file` is passed to `stubtest` is uses `parse_config_file` function. Which does not handle `disable_error_code` setting correctly. Since it is done in another place (`mypy/main.py`): https://github.com/python/mypy/blob/a0dbbd5b462136914bb7a378221ae094b6844710/mypy/main.py#L1339-L1353\r\n\r\nThere are similar cases of options that are post-processed there, but not in `parse_config_file`, but let's fix them one by one to reduce potential regressions.\r\n\r\nI propose adding `process_error_codes` method to `Options` object so it can be used in both `main.py` and `stubtest.py` (and others like `stubgen` in the future).\r\n\r\nFound while working on https://github.com/python/typeshed/pull/12463","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2024-08-03T12:54:48Z","url":"https://github.com/python/mypy/issues/17628"}
| 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:cdafcd3d-6c10-ee05-dd59-dbf01144092c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8714:11BB24:2275D70:2ECB699:6B0024EF |
| html-safe-nonce | 753266f3380e2b88bb3e770c804d1d31646ee023ef696524526d413c2404bee9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzE0OjExQkIyNDoyMjc1RDcwOjJFQ0I2OTk6NkIwMDI0RUYiLCJ2aXNpdG9yX2lkIjoiNDk4MzU2MjY0OTY5NTQyOTg3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7378209b49091ebc8e2c48d348a39ee4b900ec83d013aff7736f2a77a313f36a |
| hovercard-subject-tag | issue:2446341795 |
| 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/17628/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f3d2aa0dab381852ae7dee67ba1b826e25a8ddd0403df50ba690dc0ff3cf201/python/mypy/issues/17628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f3d2aa0dab381852ae7dee67ba1b826e25a8ddd0403df50ba690dc0ff3cf201/python/mypy/issues/17628 |
| og:image:alt | When --mypy-config-file is passed to stubtest is uses parse_config_file function. Which does not handle disable_error_code setting correctly. Since it is done in another place (mypy/main.py): mypy/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width