Title: New mypy update producing errors from "typical" sqlalchemy usage · Issue #2971 · python/mypy · GitHub
Open Graph Title: New mypy update producing errors from "typical" sqlalchemy usage · Issue #2971 · python/mypy
X Title: New mypy update producing errors from "typical" sqlalchemy usage · Issue #2971 · python/mypy
Description: I'm not sure exactly what the cause of this is yet (still investigating), but I updated mypy and typed-ast today to the new versions and had a large number of errors start showing up. Here's an example of a really straightforward usage o...
Open Graph Description: I'm not sure exactly what the cause of this is yet (still investigating), but I updated mypy and typed-ast today to the new versions and had a large number of errors start showing up. Here's an exa...
X Description: I'm not sure exactly what the cause of this is yet (still investigating), but I updated mypy and typed-ast today to the new versions and had a large number of errors start showing up. Here'...
Opengraph URL: https://github.com/python/mypy/issues/2971
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New mypy update producing errors from \"typical\" sqlalchemy usage","articleBody":"I'm not sure exactly what the cause of this is yet (still investigating), but I updated mypy and typed-ast today to the new versions and had a large number of errors start showing up. Here's an example of a really straightforward usage of SQLAlchemy (almost straight out of [the ORM tutorial](http://docs.sqlalchemy.org/en/latest/orm/tutorial.html)) that's now producing mypy errors:\r\n\r\n```\r\nfrom sqlalchemy import Column, String\r\nfrom sqlalchemy.ext.declarative import declarative_base\r\n\r\nBase = declarative_base()\r\n\r\nclass User(Base):\r\n __tablename__ = 'users'\r\n\r\n name = Column(String)\r\n\r\n def __init__(self, name: str) -> None:\r\n self.name = name\r\n```\r\n\r\nThe error is:\r\n\r\n error: Incompatible types in assignment (expression has type \"Column\", variable has type \"str\")","author":{"url":"https://github.com/Deimos","@type":"Person","name":"Deimos"},"datePublished":"2017-03-06T23:35:24Z","url":"https://github.com/python/mypy/issues/2971"}
| 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:774d7e5e-1498-ee1a-6edf-5bff99f3a74a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8D8:37C36E:C82D7:1178B9:6B006329 |
| html-safe-nonce | a00b2ecf382a2d84c7e76c22e4c882abd676bb87ee396ac72355ae00ba025b4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEQ4OjM3QzM2RTpDODJENzoxMTc4Qjk6NkIwMDYzMjkiLCJ2aXNpdG9yX2lkIjoiNDQzMzgwODY5OTgyMzI1MjI2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d4ba70a1058aa261e3f0251b87aa2bc8fe90d6c9cd04738287871412e1267bf |
| hovercard-subject-tag | issue:212284443 |
| 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/2971/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64c54c97dca01530208ebfddffeb035b63c894aa23a582778021b723f6471d45/python/mypy/issues/2971 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64c54c97dca01530208ebfddffeb035b63c894aa23a582778021b723f6471d45/python/mypy/issues/2971 |
| og:image:alt | I'm not sure exactly what the cause of this is yet (still investigating), but I updated mypy and typed-ast today to the new versions and had a large number of errors start showing up. Here's an exa... |
| 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 | 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