Title: "Already defined" + "not defined" errors with SQLAlchemy 1.2 hybrid_property · Issue #4430 · python/mypy · GitHub
Open Graph Title: "Already defined" + "not defined" errors with SQLAlchemy 1.2 hybrid_property · Issue #4430 · python/mypy
X Title: "Already defined" + "not defined" errors with SQLAlchemy 1.2 hybrid_property · Issue #4430 · python/mypy
Description: SQLAlchemy 1.2 was recently released, and changed its behavior of hybrid_property a bit to line up with how Python's @property works. Specifically, it's now necessary to use the same method name for both the getter and setter, as seen in...
Open Graph Description: SQLAlchemy 1.2 was recently released, and changed its behavior of hybrid_property a bit to line up with how Python's @property works. Specifically, it's now necessary to use the same method name fo...
X Description: SQLAlchemy 1.2 was recently released, and changed its behavior of hybrid_property a bit to line up with how Python's @property works. Specifically, it's now necessary to use the same method...
Opengraph URL: https://github.com/python/mypy/issues/4430
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Already defined\" + \"not defined\" errors with SQLAlchemy 1.2 hybrid_property","articleBody":"SQLAlchemy 1.2 was recently released, and changed its behavior of `hybrid_property` a bit to line up with how Python's `@property` works. Specifically, it's now necessary to use the same method name for both the getter and setter, as seen in the example here (both are `def name(...)`): http://docs.sqlalchemy.org/en/latest/changelog/migration_12.html#hybrid-attributes-support-reuse-among-subclasses-redefinition-of-getter\r\n\r\nThis is causing mypy to error though, it now emits two (contradictory?) errors on the `@name.setter` line:\r\n\r\n```\r\ntest.py:11: error: Name 'name' already defined\r\ntest.py:11: error: Name 'name' is not defined\r\n```\r\n ","author":{"url":"https://github.com/Deimos","@type":"Person","name":"Deimos"},"datePublished":"2018-01-05T00:36:55Z","url":"https://github.com/python/mypy/issues/4430"}
| 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:67ba9874-f457-201d-4521-0fef1e639252 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF24:29A20E:19CA0D0:22BCE25:6AFFF8D9 |
| html-safe-nonce | f3ba982ff4c9b80c4508892fcb6ca00b48f0e6589ac4e4fad18290d69ae2d257 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjI0OjI5QTIwRToxOUNBMEQwOjIyQkNFMjU6NkFGRkY4RDkiLCJ2aXNpdG9yX2lkIjoiMjQ2MzM0MjA2NDUwMzM1NTYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 762c9892e14de9bd15aaf46dd4824181b33d50b0e48130bc8178c5d5d55ce2f2 |
| hovercard-subject-tag | issue:286157551 |
| 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/4430/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dca33889b770852e76a15a13afdc5819f03f4e6834cefe55315e1c1d5929f322/python/mypy/issues/4430 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dca33889b770852e76a15a13afdc5819f03f4e6834cefe55315e1c1d5929f322/python/mypy/issues/4430 |
| og:image:alt | SQLAlchemy 1.2 was recently released, and changed its behavior of hybrid_property a bit to line up with how Python's @property works. Specifically, it's now necessary to use the same method name fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Deimos |
| 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