Title: AssertionError on version 0.960 · Issue #12868 · python/mypy · GitHub
Open Graph Title: AssertionError on version 0.960 · Issue #12868 · python/mypy
X Title: AssertionError on version 0.960 · Issue #12868 · python/mypy
Description: Bug Report We are using the ddtrace Python package. Consider the following file: # test.py import ddtrace Running mypy test.py passes without issues on version 0.950 but when run on version 0.960 the following is printed: Traceback (most...
Open Graph Description: Bug Report We are using the ddtrace Python package. Consider the following file: # test.py import ddtrace Running mypy test.py passes without issues on version 0.950 but when run on version 0.960 t...
X Description: Bug Report We are using the ddtrace Python package. Consider the following file: # test.py import ddtrace Running mypy test.py passes without issues on version 0.950 but when run on version 0.960 t...
Opengraph URL: https://github.com/python/mypy/issues/12868
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AssertionError on version 0.960","articleBody":"**Bug Report**\r\n\r\nWe are using the [ddtrace](https://github.com/DataDog/dd-trace-py) Python package.\r\nConsider the following file:\r\n```python\r\n# test.py\r\nimport ddtrace\r\n```\r\n\r\nRunning `mypy test.py` passes without issues on version `0.950` but when run on version `0.960` the following is printed:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n File \".../bin/mypy\", line 8, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \".../python3.10/site-packages/mypy/__main__.py\", line 12, in console_entry\r\n main(None, sys.stdout, sys.stderr)\r\n File \"mypy/main.py\", line 96, in main\r\n File \"mypy/main.py\", line 173, in run_build\r\n File \"mypy/build.py\", line 154, in build\r\n File \"mypy/build.py\", line 230, in _build\r\n File \"mypy/build.py\", line 2729, in dispatch\r\n File \"mypy/build.py\", line 3087, in process_graph\r\n File \"mypy/build.py\", line 3179, in process_stale_scc\r\n File \"mypy/semanal_main.py\", line 88, in semantic_analysis_for_scc\r\n File \"mypy/semanal_main.py\", line 414, in apply_class_plugin_hooks\r\n File \"mypy/semanal_main.py\", line 434, in apply_hooks_to_class\r\n File \"mypy/plugins/attrs.py\", line 309, in attr_class_maker_callback\r\n File \"mypy/plugins/attrs.py\", line 372, in _analyze_class\r\n File \"mypy/plugins/attrs.py\", line 498, in _attributes_from_assignment\r\n File \"mypy/plugins/attrs.py\", line 594, in _attribute_from_attrib_maker\r\n File \"mypy/semanal.py\", line 5450, in anal_type\r\n File \"mypy/types.py\", line 765, in accept\r\n File \"mypy/typeanal.py\", line 172, in visit_unbound_type\r\n File \"mypy/typeanal.py\", line 263, in visit_unbound_type_nonoptional\r\n File \"mypy/typeanal.py\", line 1168, in anal_array\r\n File \"mypy/typeanal.py\", line 1177, in anal_type\r\n File \"mypy/types.py\", line 765, in accept\r\n File \"mypy/typeanal.py\", line 172, in visit_unbound_type\r\n File \"mypy/typeanal.py\", line 180, in visit_unbound_type_nonoptional\r\n File \"mypy/semanal.py\", line 4563, in lookup_qualified\r\n File \"mypy/semanal.py\", line 4458, in lookup\r\n File \"mypy/semanal.py\", line 4508, in is_active_symbol_in_class_body\r\nAssertionError\r\n```\r\n\r\nI tried using the `--pdb` and `--tb` flags to get the traceback, or see which part of the library is causing this but was unable to do so.\r\nI tried clearing the mypy cache, which didn't help as well.\r\n\r\nIs this an issue with mypy, the library or both?\r\n\r\n**Your Environment**\r\n\r\n- Mypy version used: 0.960\r\n- Python version used: 3.10\r\n- Operating system and version: Ubuntu 22.04\r\n","author":{"url":"https://github.com/Apakottur","@type":"Person","name":"Apakottur"},"datePublished":"2022-05-25T14:28:20Z","url":"https://github.com/python/mypy/issues/12868"}
| 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:46da1870-ccf4-2ee1-4da4-a93730e371bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7C0:145630:2DD0661:3CA04FB:6B002417 |
| html-safe-nonce | 7dea871a6f38adbffd9c0f9a05cb2b1cadc2e96e14663917d87c1169f1cc344c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0MwOjE0NTYzMDoyREQwNjYxOjNDQTA0RkI6NkIwMDI0MTciLCJ2aXNpdG9yX2lkIjoiNzAzNTc4NDY1NzUwOTU1NzI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eef83992d05fde196aca7d109aff9237570ee98eec4677d08495d70bdd05d208 |
| hovercard-subject-tag | issue:1248185591 |
| 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/12868/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4106404c9bce8bbee5ef47cce646fe91e687eefa15e381ae86447eb203ff13be/python/mypy/issues/12868 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4106404c9bce8bbee5ef47cce646fe91e687eefa15e381ae86447eb203ff13be/python/mypy/issues/12868 |
| og:image:alt | Bug Report We are using the ddtrace Python package. Consider the following file: # test.py import ddtrace Running mypy test.py passes without issues on version 0.950 but when run on version 0.960 t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Apakottur |
| 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