René's URL Explorer Experiment


Title: SQLAlchemy stubs produce errors with basic/typical usage · Issue #974 · python/typeshed · GitHub

Open Graph Title: SQLAlchemy stubs produce errors with basic/typical usage · Issue #974 · python/typeshed

X Title: SQLAlchemy stubs produce errors with basic/typical usage · Issue #974 · python/typeshed

Description: Originally posted on the mypy repo, copying my example over to here. Here's an example of a really straightforward usage of SQLAlchemy (almost straight out of the beginning of the ORM tutorial) that's now producing mypy errors: from sqla...

Open Graph Description: Originally posted on the mypy repo, copying my example over to here. Here's an example of a really straightforward usage of SQLAlchemy (almost straight out of the beginning of the ORM tutorial) tha...

X Description: Originally posted on the mypy repo, copying my example over to here. Here's an example of a really straightforward usage of SQLAlchemy (almost straight out of the beginning of the ORM tutorial)...

Opengraph URL: https://github.com/python/typeshed/issues/974

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SQLAlchemy stubs produce errors with basic/typical usage","articleBody":"*[Originally posted on the mypy repo](https://github.com/python/mypy/issues/2971), copying my example over to here.*\r\n\r\nHere's an example of a really straightforward usage of SQLAlchemy (almost straight out of the beginning 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\")\r\n\r\nSo it seems like the stubs aren't setting up `Column` types as compatible with the basic types, which produces errors whenever they're assigned to, used as arguments to functions, etc.\r\n\r\nMentioning @WouldYouKindly since he did the major update in https://github.com/python/typeshed/pull/857.","author":{"url":"https://github.com/Deimos","@type":"Person","name":"Deimos"},"datePublished":"2017-03-07T02:14:44Z","url":"https://github.com/python/typeshed/issues/974"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d36b2b99-1ae2-0ea7-25e4-b44df033ac7a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC858:1A7566:F7B1EC:14CD8A5:6B005BB9
html-safe-nonce8d6d8fed8c1ddc36096b080757f014ab4901e0c8584a283d5603185b84a7cc45
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODU4OjFBNzU2NjpGN0IxRUM6MTRDRDhBNTo2QjAwNUJCOSIsInZpc2l0b3JfaWQiOiIxNTk4ODg4MzMxNzc1NTk3NDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac43dd9628aee02d79dc4e6ef0b57c657fe33a32ca024597dd4b6c1a24afaa55da
hovercard-subject-tagissue:212309969
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/974/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c2b28a67a8c1d5659901d0b846509ae8f4b6ca131bc53f71e5e8159b7d6047fe/python/typeshed/issues/974
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2b28a67a8c1d5659901d0b846509ae8f4b6ca131bc53f71e5e8159b7d6047fe/python/typeshed/issues/974
og:image:altOriginally posted on the mypy repo, copying my example over to here. Here's an example of a really straightforward usage of SQLAlchemy (almost straight out of the beginning of the ORM tutorial) tha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDeimos
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/974#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F974
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F974
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/974
Reloadhttps://github.com/python/typeshed/issues/974
Reloadhttps://github.com/python/typeshed/issues/974
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/974
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/974
SQLAlchemy stubs produce errors with basic/typical usagehttps://github.com/python/typeshed/issues/974#top
priority: highThis issue is more important than mosthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22priority%3A%20high%22
https://github.com/Deimos
Deimoshttps://github.com/Deimos
on Mar 7, 2017https://github.com/python/typeshed/issues/974#issue-212309969
Originally posted on the mypy repohttps://github.com/python/mypy/issues/2971
the ORM tutorialhttp://docs.sqlalchemy.org/en/latest/orm/tutorial.html
@WouldYouKindlyhttps://github.com/WouldYouKindly
#857https://github.com/python/typeshed/pull/857
https://github.com/garetht
gareththttps://github.com/garetht
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286619289
this issuehttps://github.com/python/mypy/issues/1097
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286631273
gvanrossumhttps://github.com/gvanrossum
help wantedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Mar 15, 2017https://github.com/python/typeshed/issues/974#event-1000216838
https://github.com/garetht
gareththttps://github.com/garetht
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286635705
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286640763
https://github.com/lincolnq
lincolnqhttps://github.com/lincolnq
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286865891
https://github.com/Deimos
Deimoshttps://github.com/Deimos
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286867966
@lincolnqhttps://github.com/lincolnq
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286870934
@Deimoshttps://github.com/Deimos
@WouldYouKindlyhttps://github.com/WouldYouKindly
#857https://github.com/python/typeshed/pull/857
@ambvhttps://github.com/ambv
@timabbotthttps://github.com/timabbott
@lincolnqhttps://github.com/lincolnq
gvanrossumhttps://github.com/gvanrossum
priority: highThis issue is more important than mosthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22priority%3A%20high%22
size-largehttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22size-large%22
on Mar 15, 2017https://github.com/python/typeshed/issues/974#event-1001643661
https://github.com/ambv
ambvhttps://github.com/ambv
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286873405
https://github.com/timabbott
timabbotthttps://github.com/timabbott
on Mar 15, 2017https://github.com/python/typeshed/issues/974#issuecomment-286899431
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 21, 2017https://github.com/python/typeshed/issues/974#issuecomment-287983246
@lincolnqhttps://github.com/lincolnq
Added SQLAlchemy annotations #1029https://github.com/python/typeshed/pull/1029
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Mar 21, 2017https://github.com/python/typeshed/issues/974#issuecomment-288132675
…https://github.com/python/typeshed/issues/974
@lincolnqhttps://github.com/lincolnq
https://github.com/lincolnqhttps://github.com/lincolnq
#1029https://github.com/python/typeshed/pull/1029
#1029https://github.com/python/typeshed/pull/1029
#974 (comment)https://github.com/python/typeshed/issues/974#issuecomment-287983246
https://github.com/notifications/unsubscribe-auth/ACwrMjSDuDUXt_re5P8GWDEwMI5jXuyUks5rn2RYgaJpZM4MU9Cqhttps://github.com/notifications/unsubscribe-auth/ACwrMjSDuDUXt_re5P8GWDEwMI5jXuyUks5rn2RYgaJpZM4MU9Cq
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 23, 2017https://github.com/python/typeshed/issues/974#issuecomment-288618871
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 23, 2017https://github.com/python/typeshed/issues/974#event-1011756025
sqlalchemy: stubgen-generated stubshttps://github.com/JelleZijlstra/typeshed/commit/711fb12e4e1ede47d71f5d9a330b2abd1bd0e60c
711fb12https://github.com/JelleZijlstra/typeshed/commit/711fb12e4e1ede47d71f5d9a330b2abd1bd0e60c
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 25, 2017https://github.com/python/typeshed/issues/974#issuecomment-289185011
#1094https://github.com/python/typeshed/pull/1094
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 28, 2017https://github.com/python/typeshed/issues/974#issuecomment-289822126
#1105https://github.com/python/typeshed/pull/1105
https://github.com/JelleZijlstra/sqlalchemy-stubshttps://github.com/JelleZijlstra/sqlalchemy-stubs
JelleZijlstrahttps://github.com/JelleZijlstra
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 28, 2017https://github.com/python/typeshed/issues/974#event-1018868407
https://github.com/j-walker23
j-walker23https://github.com/j-walker23
on Nov 16, 2018https://github.com/python/typeshed/issues/974#issuecomment-439311046
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Nov 16, 2018https://github.com/python/typeshed/issues/974#issuecomment-439353890
@j-walker23https://github.com/j-walker23
https://github.com/dropbox/sqlalchemy-stubs/https://github.com/dropbox/sqlalchemy-stubs/
https://github.com/j-walker23
j-walker23https://github.com/j-walker23
on Nov 16, 2018https://github.com/python/typeshed/issues/974#issuecomment-439354518
@ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/JelleZijlstra/sqlalchemy-stubshttps://github.com/JelleZijlstra/sqlalchemy-stubs
hswong3ihttps://github.com/hswong3i
on May 25, 2025https://github.com/python/typeshed/issues/974#event-17803768033
prepare release 4.0.1 (python#974)https://github.com/alvistack/python-typeshed/commit/cd9faac806f991344ade6c81cb5b321242f611c3
python#974https://github.com/python/typeshed/issues/974
cd9faachttps://github.com/alvistack/python-typeshed/commit/cd9faac806f991344ade6c81cb5b321242f611c3
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/974
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/974
priority: highThis issue is more important than mosthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22priority%3A%20high%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.