Title: mypy error trying to check pymc3 · Issue #5560 · python/mypy · GitHub
Open Graph Title: mypy error trying to check pymc3 · Issue #5560 · python/mypy
X Title: mypy error trying to check pymc3 · Issue #5560 · python/mypy
Description: Are you reporting a bug, or opening a feature request? Bug report, for the following error: pymc3/backends/hdf5.py:101: error: INTERNAL ERROR -- please report a bug at https://github.com/python/mypy/issues version: 0.620 Please insert be...
Open Graph Description: Are you reporting a bug, or opening a feature request? Bug report, for the following error: pymc3/backends/hdf5.py:101: error: INTERNAL ERROR -- please report a bug at https://github.com/python/myp...
X Description: Are you reporting a bug, or opening a feature request? Bug report, for the following error: pymc3/backends/hdf5.py:101: error: INTERNAL ERROR -- please report a bug at https://github.com/python/myp...
Opengraph URL: https://github.com/python/mypy/issues/5560
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy error trying to check pymc3","articleBody":"* Are you reporting a bug, or opening a feature request?\r\nBug report, for the following error:\r\n `pymc3/backends/hdf5.py:101: error: INTERNAL ERROR -- please report a bug at https://github.com/python/mypy/issues version: 0.620`\r\n* Please insert below the code you are checking with mypy,\r\n or a mock-up repro if the source is private. We would appreciate\r\n if you try to simplify your case to a minimal repro.\r\nTried testing the code in this repo: \r\n`origin\tgit@github.com:rpgoldman/pymc3.git`\r\n* What is the actual behavior/output?\r\nSee error report above.\r\n* What is the behavior/output you expect?\r\nNo runtime error.\r\n* What are the versions of mypy and Python you are using?\r\n`mypy 0.620, python 3.7.0`\r\n* Do you see the same issue after installing mypy from Git master?\r\nWill check and then update this ticket\r\n* What are the mypy flags you are using? (For example --strict-optional)\r\n `mypy --show-traceback --ignore-missing-imports pymc3/ > /tmp/mypy-transcript.txt`\r\n* If mypy crashed with a traceback, please paste\r\n the full traceback below.\r\n\r\n```\r\npymc3/model.py:672: error: Decorated property not supported\r\npymc3/variational/opvi.py:1556: error: Decorated property not supported\r\npymc3/variational/flows.py:193: error: Decorated property not supported\r\npymc3/__init__.py:25: error: Name 'utils' already defined (by an import)\r\npymc3/data.py:226: error: Need type annotation for 'RNG'\r\nTraceback (most recent call last):\r\n File \"/Users/rpg/Library/Python/3.7/bin/mypy\", line 11, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/__main__.py\", line 7, in console_entry\r\n main(None)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/main.py\", line 91, in main\r\n res = type_check_only(sources, bin_dir, options, flush_errors, fscache) # noqa\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/main.py\", line 148, in type_check_only\r\n fscache=fscache)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/build.py\", line 177, in build\r\n flush_errors, fscache)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/build.py\", line 350, in _build\r\n graph = dispatch(sources, manager)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/build.py\", line 2560, in dispatch\r\n process_graph(graph, manager)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/build.py\", line 2853, in process_graph\r\n process_stale_scc(graph, scc, manager)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/build.py\", line 2976, in process_stale_scc\r\n graph[id].type_check_first_pass()\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/build.py\", line 2151, in type_check_first_pass\r\n self.type_checker().check_first_pass()\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 253, in check_first_pass\r\n self.accept(d)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 352, in accept\r\n stmt.accept(self)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/nodes.py\", line 808, in accept\r\n return visitor.visit_class_def(self)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 1368, in visit_class_def\r\n self.accept(defn.defs)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 352, in accept\r\n stmt.accept(self)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/nodes.py\", line 873, in accept\r\n return visitor.visit_block(self)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 1514, in visit_block\r\n self.accept(s)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 352, in accept\r\n stmt.accept(self)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/nodes.py\", line 443, in accept\r\n return visitor.visit_overloaded_func_def(self)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 385, in visit_overloaded_func_def\r\n self._visit_overloaded_func_def(defn)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 409, in _visit_overloaded_func_def\r\n self.check_method_override(defn)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 1198, in check_method_override\r\n self.check_method_or_accessor_override_for_base(defn, base)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 1208, in check_method_or_accessor_override_for_base\r\n self.check_method_override_for_base_with_name(defn, name, base)\r\n File \"/Users/rpg/Library/Python/3.7/lib/python/site-packages/mypy/checker.py\", line 1252, in check_method_override_for_base_with_name\r\n assert False, str(base_attr.node)\r\nAssertionError: Var(sampler_vars)\r\n```\r\n\r\n","author":{"url":"https://github.com/rpgoldman","@type":"Person","name":"rpgoldman"},"datePublished":"2018-09-02T23:31:02Z","url":"https://github.com/python/mypy/issues/5560"}
| 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:9c62de3a-e82a-0630-3068-7b50086eec6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E856:120A77:1C099D4:25EF735:6B0007FE |
| html-safe-nonce | 272fcaa4940eb8a5b80afdfc302fdce2d1bf92050ce603841a1ff2e3df6ccade |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODU2OjEyMEE3NzoxQzA5OUQ0OjI1RUY3MzU6NkIwMDA3RkUiLCJ2aXNpdG9yX2lkIjoiNzg0MTM5OTI2MjQyNzQ4MjExMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 63e0d23c0dace3632c29efbc153a5b5d851f5c848b9a25a006627177ccd00e56 |
| hovercard-subject-tag | issue:356322736 |
| 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/5560/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36e3a18b0ee397a23ac8d2a4b7bc982bd307b19782ff99fbc86a9cbfe289e737/python/mypy/issues/5560 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36e3a18b0ee397a23ac8d2a4b7bc982bd307b19782ff99fbc86a9cbfe289e737/python/mypy/issues/5560 |
| og:image:alt | Are you reporting a bug, or opening a feature request? Bug report, for the following error: pymc3/backends/hdf5.py:101: error: INTERNAL ERROR -- please report a bug at https://github.com/python/myp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rpgoldman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width