Skip to content

[PyMySQL] Sync ER constants with PyMySQL 1.2.4 - #16753

Open
workollab wants to merge 1 commit into
python:mainfrom
workollab:fix/pymysql-sync-er-constants-with-1-2-4
Open

workollab wants to merge 1 commit into
python:mainfrom
workollab:fix/pymysql-sync-er-constants-with-1-2-4

Conversation

@workollab

Copy link
Copy Markdown

Stubtest for PyMySQL reported three mismatches in pymysql.constants.ER. This PR fixes them in stubs/PyMySQL/pymysql/constants/ER.pyi:

  • Remove ERROR_LAST, which no longer exists at runtime.
  • Add MUST_CHANGE_PASSWORD = 1820.
  • Add MUST_CHANGE_PASSWORD_LOGIN = 1862.

I grepped the PyMySQL stubs and nothing else references ER.ERROR_LAST. CR_ERROR_LAST in CR.pyi is a different constant and I left it alone. Ruff passes on the changed file, and tests/stubtest_third_party.py PyMySQL passed in my run.

@github-actions

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