Skip to content

[PyMySQL] Fix the type of Cursor.description - #16707

Open
Pixeless001 wants to merge 1 commit into
python:mainfrom
Pixeless001:pymysql-cursor-description
Open

Pixeless001 wants to merge 1 commit into
python:mainfrom
Pixeless001:pymysql-cursor-description

Conversation

@Pixeless001

Copy link
Copy Markdown

Cursor.description is set from MySQLResult.description, which is a tuple of PEP 249 7-item tuples (name, type_code, None, internal_size, precision, scale, null_ok), not a tuple of strings. It's None until a query runs, so this uses | MaybeNone like sqlite3.Cursor.description.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant