Title: Class level __getattr__ causes error: __getattr__ is not valid at the module level outside a stub file · Issue #4069 · python/mypy · GitHub
Open Graph Title: Class level __getattr__ causes error: __getattr__ is not valid at the module level outside a stub file · Issue #4069 · python/mypy
X Title: Class level __getattr__ causes error: __getattr__ is not valid at the module level outside a stub file · Issue #4069 · python/mypy
Description: After updating to mypy 0.530, I am getting an error on a __getattr__() method defined on a class: $ mypy --version mypy 0.530 $ python3 --version Python 3.6.3 [~/cretonne/lib/cretonne/meta] $ cat mypy.ini [mypy] disallow_untyped_defs = T...
Open Graph Description: After updating to mypy 0.530, I am getting an error on a __getattr__() method defined on a class: $ mypy --version mypy 0.530 $ python3 --version Python 3.6.3 [~/cretonne/lib/cretonne/meta] $ cat m...
X Description: After updating to mypy 0.530, I am getting an error on a __getattr__() method defined on a class: $ mypy --version mypy 0.530 $ python3 --version Python 3.6.3 [~/cretonne/lib/cretonne/meta] $ cat m...
Opengraph URL: https://github.com/python/mypy/issues/4069
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Class level __getattr__ causes error: __getattr__ is not valid at the module level outside a stub file","articleBody":"After updating to mypy 0.530, I am getting an error on a `__getattr__()` method defined on a class:\r\n\r\n```\r\n$ mypy --version\r\nmypy 0.530\r\n$ python3 --version\r\nPython 3.6.3\r\n[~/cretonne/lib/cretonne/meta]\r\n$ cat mypy.ini \r\n[mypy]\r\ndisallow_untyped_defs = True\r\nwarn_unused_ignores = True\r\nwarn_return_any = True\r\n[~/cretonne/lib/cretonne/meta]\r\n$ mypy cdsl/formats.py\r\ncdsl/formats.py:143: error: __getattr__ is not valid at the module level outside a stub file\r\n```\r\n\r\nI don't have any module level `__getattr__()` functions.\r\n\r\nThis didn't reproduce with a smaller test case, but you can check out the [Cretonne repo](https://github.com/stoklund/cretonne) to reproduce.","author":{"url":"https://github.com/stoklund","@type":"Person","name":"stoklund"},"datePublished":"2017-10-06T19:08:20Z","url":"https://github.com/python/mypy/issues/4069"}
| 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:f665f623-2608-ea0b-ec3d-c37a0b14aa25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA78:2B41BC:4F0B94:6A39B4:6B002F3F |
| html-safe-nonce | a8beb31b51a748066ccb744aa47747d09e2cdb2787a1da2693210edf3ec8b30a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTc4OjJCNDFCQzo0RjBCOTQ6NkEzOUI0OjZCMDAyRjNGIiwidmlzaXRvcl9pZCI6IjIzODQwMDgzNTM0ODQzODYxMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1b19eb08b85f53f223e7235f8b90933a6491f9b3f1f65e7f669b7f1c964d0dc8 |
| hovercard-subject-tag | issue:263543577 |
| 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/4069/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2513aad92b1a9cd7b258b2fe55d1294b8e16755d0736d61f31cf9414f5dafc93/python/mypy/issues/4069 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2513aad92b1a9cd7b258b2fe55d1294b8e16755d0736d61f31cf9414f5dafc93/python/mypy/issues/4069 |
| og:image:alt | After updating to mypy 0.530, I am getting an error on a __getattr__() method defined on a class: $ mypy --version mypy 0.530 $ python3 --version Python 3.6.3 [~/cretonne/lib/cretonne/meta] $ cat m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stoklund |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width