Title: (🐞) crash with `--pretty` from attrs raising an error in the wrong file · Issue #17535 · python/mypy · GitHub
Open Graph Title: (🐞) crash with `--pretty` from attrs raising an error in the wrong file · Issue #17535 · python/mypy
X Title: (🐞) crash with `--pretty` from attrs raising an error in the wrong file · Issue #17535 · python/mypy
Description: > git clone https://github.com/DataDog/dd-trace-py > cd dd-trace-py > pip install -e . > pip install mypy > mypy --strict --check-untyped-defs | grep threading.py ddtrace/profiling/collector/threading.py:25: error: Need type annotation f...
Open Graph Description: > git clone https://github.com/DataDog/dd-trace-py > cd dd-trace-py > pip install -e . > pip install mypy > mypy --strict --check-untyped-defs | grep threading.py ddtrace/profiling/collector/thread...
X Description: > git clone https://github.com/DataDog/dd-trace-py > cd dd-trace-py > pip install -e . > pip install mypy > mypy --strict --check-untyped-defs | grep threading.py ddtrace/profiling/c...
Opengraph URL: https://github.com/python/mypy/issues/17535
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(🐞) crash with `--pretty` from attrs raising an error in the wrong file","articleBody":"```\r\n> git clone https://github.com/DataDog/dd-trace-py\r\n> cd dd-trace-py\r\n> pip install -e .\r\n> pip install mypy\r\n> mypy --strict --check-untyped-defs | grep threading.py\r\nddtrace/profiling/collector/threading.py:25: error: Need type annotation for \"recorder\" [var-annotated]\r\nddtrace/profiling/collector/threading.py:29: error: Function is missing a type annotation for one or more arguments [no-untyped-def]\r\nddtrace/profiling/collector/threading.py:316: error: Need type annotation for \"tracer\" [var-annotated]\r\n> mypy --strict --check-untyped-defs --pretty\r\n...\r\n File \"mypy/main.py\", line 100, in main\r\n File \"mypy/main.py\", line 182, in run_build\r\n File \"mypy/build.py\", line 192, in build\r\n File \"mypy/build.py\", line 266, in _build\r\n File \"mypy/build.py\", line 2942, in dispatch\r\n File \"mypy/build.py\", line 3340, in process_graph\r\n File \"mypy/build.py\", line 3465, in process_stale_scc\r\n File \"mypy/errors.py\", line 915, in file_messages\r\n File \"mypy/errors.py\", line 885, in format_messages\r\nIndexError: list index out of range\r\n```\r\n`threading.py:316: error`, threading only has 43 lines in it.\r\n\r\n","author":{"url":"https://github.com/KotlinIsland","@type":"Person","name":"KotlinIsland"},"datePublished":"2024-07-17T15:55:29Z","url":"https://github.com/python/mypy/issues/17535"}
| 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:8805d624-2bcd-a72f-3b43-e423ce41ad3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AC4:11DEE:1246ED:18A94F:6B00642A |
| html-safe-nonce | 84cded8325b18113245f58549cd48ef297f75d8696884ace708ef41113f25afb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUM0OjExREVFOjEyNDZFRDoxOEE5NEY6NkIwMDY0MkEiLCJ2aXNpdG9yX2lkIjoiMTc1Njc1MDk5NzIwMTM4MDM5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3f397a4c9b21cc052c35fb93297ba86ce9d55796cd7bda0b9889e3ba83feee0d |
| hovercard-subject-tag | issue:2413985460 |
| 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/17535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39f809f9d16a74c7fa5ca44ec594f52eaa4dfe51eea4d1423964f571ec8a527b/python/mypy/issues/17535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39f809f9d16a74c7fa5ca44ec594f52eaa4dfe51eea4d1423964f571ec8a527b/python/mypy/issues/17535 |
| og:image:alt | > git clone https://github.com/DataDog/dd-trace-py > cd dd-trace-py > pip install -e . > pip install mypy > mypy --strict --check-untyped-defs | grep threading.py ddtrace/profiling/collector/thread... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KotlinIsland |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| 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 | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width