René's URL Explorer Experiment


Title: Pymysql cursor types and fetching return types by Akuli · Pull Request #5652 · python/typeshed · GitHub

Open Graph Title: Pymysql cursor types and fetching return types by Akuli · Pull Request #5652 · python/typeshed

X Title: Pymysql cursor types and fetching return types by Akuli · Pull Request #5652 · python/typeshed

Description: Fixes #5567 so that Cursor and DictCursor no longer return annoying unions. I also got rid of several Optionals. In those methods, I looked at the source code and I tried select * from foo on a local test database, and couldn't get it to return None. I also made Connection generic, so that when you create a connection, it remembers which cursor class you want to use. You can still customize this by passing a custom class to .cursor().

Open Graph Description: Fixes #5567 so that Cursor and DictCursor no longer return annoying unions. I also got rid of several Optionals. In those methods, I looked at the source code and I tried select * from foo on a loc...

X Description: Fixes #5567 so that Cursor and DictCursor no longer return annoying unions. I also got rid of several Optionals. In those methods, I looked at the source code and I tried select * from foo on a loc...

Opengraph URL: https://github.com/python/typeshed/pull/5652

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0fca2b46-fa0b-4e85-54bb-2077d68d28e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A18:3EE843:26FE8BE:354F30A:6B004849
html-safe-nonced4cabd15ae27c138cc4e9787d623e949fd086c5df2881b581485e0d221580161
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTE4OjNFRTg0MzoyNkZFOEJFOjM1NEYzMEE6NkIwMDQ4NDkiLCJ2aXNpdG9yX2lkIjoiODMxNzEzNTY5NTgzNTU4MDQ4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca1a0fa209d9007c5ba6aa1fe6c152362497eaaa801bdc67e04b7c1ab239c2e42
hovercard-subject-tagpull_request:671787483
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typeshed/pull/5652/files
twitter:imagehttps://avatars.githubusercontent.com/u/18505570?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/18505570?s=400&v=4
og:image:altFixes #5567 so that Cursor and DictCursor no longer return annoying unions. I also got rid of several Optionals. In those methods, I looked at the source code and I tried select * from foo on a loc...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/5652/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F5652%2Ffiles
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%2Fpull%2F5652%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/5652/files
Reloadhttps://github.com/python/typeshed/pull/5652/files
Reloadhttps://github.com/python/typeshed/pull/5652/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
srittauhttps://github.com/srittau
python:masterhttps://github.com/python/typeshed/tree/master
Akuli:pymysqlhttps://github.com/Akuli/typeshed/tree/pymysql
Conversation 6 https://github.com/python/typeshed/pull/5652
Commits 13 https://github.com/python/typeshed/pull/5652/commits
Checks 0 https://github.com/python/typeshed/pull/5652/checks
Files changed https://github.com/python/typeshed/pull/5652/files
Please reload this pagehttps://github.com/python/typeshed/pull/5652/files
Pymysql cursor types and fetching return types https://github.com/python/typeshed/pull/5652/files#top
Show all changes 13 commits https://github.com/python/typeshed/pull/5652/files
45ad2a8 fix returning correct cursor classes Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/45ad2a8ad86a7ddf5abaeeda54e8d39d6f2cf78a
d1acadd fix fetch return types Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/d1acaddf3587eda8aeeecd9084f077de0027f51b
7c79a6d fixening Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/7c79a6dda841d5e055f50a619049b31d36c1b462
9971b42 stubtest fixes Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/9971b4220037e907e8569f2b7ea2e5c1e656d8a3
aaeda1e add unrelated ssl arguments to make stubtyst happy Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/aaeda1ed84ae4e6f3804e231e2c44dee0280d010
bf0c294 stubtest lol Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/bf0c294b38e092bff4636c6801474b848c582921
05c5eca delete a comment that says the obvious Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/05c5eca2946962c40d34476412ad468bcd6eb379
77b078a stubteeeeeeeestt Akuli Jun 16, 2021 https://github.com/python/typeshed/pull/5652/commits/77b078af07d12013841b8d22e04bd5ae279ea655
ebd14ae Merge remote-tracking branch 'origin/master' into pymysql Akuli Jun 17, 2021 https://github.com/python/typeshed/pull/5652/commits/ebd14aec07a828ffab1dfde3c85b02976e6c81ff
faafba4 connections.pyi: Optional to new-style union Akuli Jun 17, 2021 https://github.com/python/typeshed/pull/5652/commits/faafba48343c635e191c7f8dc04fe4eb725dca02
563bdd2 delete not-ready types Akuli Jun 17, 2021 https://github.com/python/typeshed/pull/5652/commits/563bdd2867caf136240d05fa5f4d57fa5327b772
d4a95c1 pyright cleanups Akuli Jun 17, 2021 https://github.com/python/typeshed/pull/5652/commits/d4a95c17536746ecb7304aad5264de3ca414aa52
be30536 version update: stubs made based on pymysql 1.0.2 Akuli Jun 17, 2021 https://github.com/python/typeshed/pull/5652/commits/be305368c7afa83076d7c95178fb20ffa397feda
Clear filters https://github.com/python/typeshed/pull/5652/files
Please reload this pagehttps://github.com/python/typeshed/pull/5652/files
Please reload this pagehttps://github.com/python/typeshed/pull/5652/files
stubtest_allowlist.txt https://github.com/python/typeshed/pull/5652/files#diff-5c9d342140bae6e06b6f14c45febe0c13184cd3220d370f10b556bbfb7de9b01
METADATA.toml https://github.com/python/typeshed/pull/5652/files#diff-8c6a665db0a06e7c5108bc93201f557aeb15ea7ef0819569bf445e4ed36cf803
__init__.pyi https://github.com/python/typeshed/pull/5652/files#diff-879b8e69e8783d42b51863392ead5b63509f28d05cadffde8b1b5596a74f23ee
connections.pyi https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
cursors.pyi https://github.com/python/typeshed/pull/5652/files#diff-33104ff349d7d577503d948495d0e7e229fa69f5f4fc20d9553b1c5248054ec1
stubs/PyMySQL/@tests/stubtest_allowlist.txthttps://github.com/python/typeshed/pull/5652/files#diff-5c9d342140bae6e06b6f14c45febe0c13184cd3220d370f10b556bbfb7de9b01
View file https://github.com/Akuli/typeshed/blob/be305368c7afa83076d7c95178fb20ffa397feda/stubs/PyMySQL/%40tests/stubtest_allowlist.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/5652/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/5652/files#diff-5c9d342140bae6e06b6f14c45febe0c13184cd3220d370f10b556bbfb7de9b01
https://github.com/python/typeshed/pull/5652/files#diff-5c9d342140bae6e06b6f14c45febe0c13184cd3220d370f10b556bbfb7de9b01
https://github.com/python/typeshed/pull/5652/files#diff-5c9d342140bae6e06b6f14c45febe0c13184cd3220d370f10b556bbfb7de9b01
stubs/PyMySQL/METADATA.tomlhttps://github.com/python/typeshed/pull/5652/files#diff-8c6a665db0a06e7c5108bc93201f557aeb15ea7ef0819569bf445e4ed36cf803
View file https://github.com/Akuli/typeshed/blob/be305368c7afa83076d7c95178fb20ffa397feda/stubs/PyMySQL/METADATA.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/5652/{{ revealButtonHref }}
stubs/PyMySQL/pymysql/__init__.pyihttps://github.com/python/typeshed/pull/5652/files#diff-879b8e69e8783d42b51863392ead5b63509f28d05cadffde8b1b5596a74f23ee
View file https://github.com/Akuli/typeshed/blob/be305368c7afa83076d7c95178fb20ffa397feda/stubs/PyMySQL/pymysql/__init__.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/5652/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/5652/files#diff-879b8e69e8783d42b51863392ead5b63509f28d05cadffde8b1b5596a74f23ee
https://github.com/python/typeshed/pull/5652/files#diff-879b8e69e8783d42b51863392ead5b63509f28d05cadffde8b1b5596a74f23ee
stubs/PyMySQL/pymysql/connections.pyihttps://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
View file https://github.com/Akuli/typeshed/blob/be305368c7afa83076d7c95178fb20ffa397feda/stubs/PyMySQL/pymysql/connections.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/5652/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
https://github.com/python/typeshed/pull/5652/files#diff-57845a10f50777ca0110400712c1b80e507a4e213eecd0e8c95f64d273943780
stubs/PyMySQL/pymysql/cursors.pyihttps://github.com/python/typeshed/pull/5652/files#diff-33104ff349d7d577503d948495d0e7e229fa69f5f4fc20d9553b1c5248054ec1
View file https://github.com/Akuli/typeshed/blob/be305368c7afa83076d7c95178fb20ffa397feda/stubs/PyMySQL/pymysql/cursors.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/5652/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/5652/files#diff-33104ff349d7d577503d948495d0e7e229fa69f5f4fc20d9553b1c5248054ec1
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.