types-PyMySQL 1.2.0.20260923__tar.gz → 1.2.4.20261116__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/CHANGELOG.md +10 -0
  2. {types_pymysql-1.2.0.20260923/types_PyMySQL.egg-info → types_pymysql-1.2.4.20261116}/PKG-INFO +6 -6
  3. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/README.md +5 -5
  4. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/METADATA.toml +1 -1
  5. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/_auth.pyi +7 -3
  6. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/connections.pyi +2 -3
  7. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/ER.pyi +2 -1
  8. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/cursors.pyi +2 -1
  9. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/protocol.pyi +1 -2
  10. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pyproject.toml +6 -6
  11. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116/types_PyMySQL.egg-info}/PKG-INFO +6 -6
  12. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/LICENSE +0 -0
  13. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/MANIFEST.in +0 -0
  14. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/__init__.pyi +0 -0
  15. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/charset.pyi +0 -0
  16. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/CLIENT.pyi +0 -0
  17. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/COMMAND.pyi +0 -0
  18. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/CR.pyi +0 -0
  19. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/FIELD_TYPE.pyi +0 -0
  20. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/FLAG.pyi +0 -0
  21. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/SERVER_STATUS.pyi +0 -0
  22. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/constants/__init__.pyi +0 -0
  23. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/converters.pyi +0 -0
  24. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/err.pyi +0 -0
  25. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/optionfile.pyi +0 -0
  26. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/py.typed +0 -0
  27. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/pymysql-stubs/times.pyi +0 -0
  28. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/setup.cfg +0 -0
  29. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/types_PyMySQL.egg-info/SOURCES.txt +0 -0
  30. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/types_PyMySQL.egg-info/dependency_links.txt +0 -0
  31. {types_pymysql-1.2.0.20260923 → types_pymysql-1.2.4.20261116}/types_PyMySQL.egg-info/top_level.txt +0 -0
@@ -1,3 +1,13 @@
1
+ ## [1.2.4.20261116](https://pypi.org/project/types-PyMySQL/1.2.4.20261116/) (2026-11-16)
2
+
3
+ * Replace Incomplete in MySQLResult, protocol and _auth ([#16706](https://github.com/python/typeshed/pull/16706))
4
+
5
+ * Fix the type of Cursor.description ([#16707](https://github.com/python/typeshed/pull/16707))
6
+
7
+ ## [1.2.4.20261111](https://pypi.org/project/types-PyMySQL/1.2.4.20261111/) (2026-11-11)
8
+
9
+ * Sync ER constants with PyMySQL 1.2.4 ([#16753](https://github.com/python/typeshed/pull/16753))
10
+
1
11
  ## [1.2.0.20260923](https://pypi.org/project/types-PyMySQL/1.2.0.20260923/) (2026-09-23)
2
12
 
3
13
  * Update to 1.2.3 ([#16426](https://github.com/python/typeshed/pull/16426))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-PyMySQL
3
- Version: 1.2.0.20260923
3
+ Version: 1.2.4.20261116
4
4
  Summary: Typing stubs for PyMySQL
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/python/typeshed
@@ -21,7 +21,7 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
21
21
  for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package. It can be used by type checkers
22
22
  to check code that uses `PyMySQL`. This version of
23
23
  `types-PyMySQL` aims to provide accurate annotations for
24
- `PyMySQL==1.2.*`.
24
+ `PyMySQL~=1.2.4`.
25
25
 
26
26
  This package is part of the [typeshed project](https://github.com/python/typeshed).
27
27
  All fixes for types and metadata should be contributed there.
@@ -31,10 +31,10 @@ for more details. The source for this package can be found in the
31
31
  directory.
32
32
 
33
33
  This package was tested with the following type checkers:
34
- * [mypy](https://www.mypy-lang.org/) 2.3.0
35
- * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
34
+ * [mypy](https://www.mypy-lang.org/) 2.4.1
35
+ * [pyrefly](https://pyrefly.org/) 1.4.1
36
36
  * [pyright](https://microsoft.github.io/pyright/) 1.1.414
37
- * [ty](https://docs.astral.sh/ty/) 0.0.59
37
+ * [ty](https://docs.astral.sh/ty/) 0.0.99
38
38
 
39
39
  It was generated from typeshed commit
40
- [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
40
+ [`8e21ebd653f6cad1ef9e6518bd81833d39c2c863`](https://github.com/python/typeshed/commit/8e21ebd653f6cad1ef9e6518bd81833d39c2c863).
@@ -4,7 +4,7 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
4
4
  for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package. It can be used by type checkers
5
5
  to check code that uses `PyMySQL`. This version of
6
6
  `types-PyMySQL` aims to provide accurate annotations for
7
- `PyMySQL==1.2.*`.
7
+ `PyMySQL~=1.2.4`.
8
8
 
9
9
  This package is part of the [typeshed project](https://github.com/python/typeshed).
10
10
  All fixes for types and metadata should be contributed there.
@@ -14,10 +14,10 @@ for more details. The source for this package can be found in the
14
14
  directory.
15
15
 
16
16
  This package was tested with the following type checkers:
17
- * [mypy](https://www.mypy-lang.org/) 2.3.0
18
- * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
17
+ * [mypy](https://www.mypy-lang.org/) 2.4.1
18
+ * [pyrefly](https://pyrefly.org/) 1.4.1
19
19
  * [pyright](https://microsoft.github.io/pyright/) 1.1.414
20
- * [ty](https://docs.astral.sh/ty/) 0.0.59
20
+ * [ty](https://docs.astral.sh/ty/) 0.0.99
21
21
 
22
22
  It was generated from typeshed commit
23
- [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
23
+ [`8e21ebd653f6cad1ef9e6518bd81833d39c2c863`](https://github.com/python/typeshed/commit/8e21ebd653f6cad1ef9e6518bd81833d39c2c863).
@@ -1,2 +1,2 @@
1
- version = "1.2.*"
1
+ version = "~=1.2.4"
2
2
  upstream-repository = "https://github.com/PyMySQL/PyMySQL"
@@ -1,13 +1,17 @@
1
- from _typeshed import Incomplete, ReadableBuffer
1
+ from _hashlib import HASH
2
+ from _typeshed import ReadableBuffer
3
+ from functools import partial
2
4
  from typing import Final
3
5
 
6
+ from .protocol import MysqlPacket
7
+
4
8
  DEBUG: Final[bool]
5
9
  SCRAMBLE_LENGTH: Final[int]
6
- sha1_new: Incomplete
10
+ sha1_new: partial[HASH]
7
11
 
8
12
  def scramble_native_password(password: ReadableBuffer | None, message: ReadableBuffer | None) -> bytes: ...
9
13
  def ed25519_password(password: ReadableBuffer, scramble: ReadableBuffer) -> bytes: ...
10
14
  def sha2_rsa_encrypt(password: bytes, salt: bytes, public_key: bytes) -> bytes: ...
11
15
  def sha256_password_auth(conn, pkt): ...
12
16
  def scramble_caching_sha2(password: ReadableBuffer, nonce: ReadableBuffer) -> bytes: ...
13
- def caching_sha2_password_auth(conn, pkt) -> Incomplete | None: ...
17
+ def caching_sha2_password_auth(conn, pkt) -> MysqlPacket | None: ...
@@ -265,12 +265,11 @@ class MySQLResult:
265
265
  warning_count: int
266
266
  message: str | None
267
267
  field_count: int
268
- description: Incomplete
269
- rows: Incomplete
268
+ description: tuple[tuple[str, int, None, int, int, int, bool], ...] | None
269
+ rows: tuple[tuple[Any, ...], ...] | None
270
270
  has_next: bool | None
271
271
  unbuffered_active: bool
272
272
  def __init__(self, connection: Connection[Any]) -> None: ...
273
273
  def __del__(self) -> None: ...
274
- first_packet: Incomplete
275
274
  def read(self) -> None: ...
276
275
  def init_unbuffered_query(self) -> None: ...
@@ -470,7 +470,8 @@ NO_TRIGGERS_ON_SYSTEM_SCHEMA: Final = 1465
470
470
  USERNAME: Final = 1466
471
471
  HOSTNAME: Final = 1467
472
472
  WRONG_STRING_LENGTH: Final = 1468
473
- ERROR_LAST: Final = 1468
473
+ MUST_CHANGE_PASSWORD: Final = 1820
474
+ MUST_CHANGE_PASSWORD_LOGIN: Final = 1862
474
475
  STATEMENT_TIMEOUT: Final = 1969
475
476
  QUERY_TIMEOUT: Final = 3024
476
477
  CONSTRAINT_FAILED: Final = 4025
@@ -1,4 +1,5 @@
1
1
  import re
2
+ from _typeshed import MaybeNone
2
3
  from collections.abc import Iterable, Iterator
3
4
  from typing import Any, ClassVar, TypeAlias, overload
4
5
  from typing_extensions import Self, deprecated
@@ -11,7 +12,7 @@ _Args: TypeAlias = list[Any] | tuple[Any, ...] | dict[str, Any]
11
12
  class Cursor:
12
13
  max_stmt_length: ClassVar[int]
13
14
  connection: Connection[Any]
14
- description: tuple[str, ...]
15
+ description: tuple[tuple[str, int, None, int, int, int, bool], ...] | MaybeNone
15
16
  rownumber: int
16
17
  rowcount: int
17
18
  arraysize: int
@@ -1,4 +1,3 @@
1
- from _typeshed import Incomplete
2
1
  from typing import Final
3
2
 
4
3
  DEBUG: Final[bool]
@@ -25,7 +24,7 @@ class MysqlPacket:
25
24
  def read_uint32(self): ...
26
25
  def read_uint64(self): ...
27
26
  def read_string(self): ...
28
- def read_length_encoded_integer(self) -> Incomplete | None: ...
27
+ def read_length_encoded_integer(self) -> int | None: ...
29
28
  def read_length_coded_string(self): ...
30
29
  def read_struct(self, fmt: str): ...
31
30
  def is_ok_packet(self) -> bool: ...
@@ -4,7 +4,7 @@ requires = ["setuptools>=82.0.1"]
4
4
 
5
5
  [project]
6
6
  name = "types-PyMySQL"
7
- version = "1.2.0.20260923"
7
+ version = "1.2.4.20261116"
8
8
  license = "Apache-2.0"
9
9
  license-files = ["LICENSE"]
10
10
  description = "Typing stubs for PyMySQL"
@@ -15,7 +15,7 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
15
15
  for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package. It can be used by type checkers
16
16
  to check code that uses `PyMySQL`. This version of
17
17
  `types-PyMySQL` aims to provide accurate annotations for
18
- `PyMySQL==1.2.*`.
18
+ `PyMySQL~=1.2.4`.
19
19
 
20
20
  This package is part of the [typeshed project](https://github.com/python/typeshed).
21
21
  All fixes for types and metadata should be contributed there.
@@ -25,13 +25,13 @@ for more details. The source for this package can be found in the
25
25
  directory.
26
26
 
27
27
  This package was tested with the following type checkers:
28
- * [mypy](https://www.mypy-lang.org/) 2.3.0
29
- * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
28
+ * [mypy](https://www.mypy-lang.org/) 2.4.1
29
+ * [pyrefly](https://pyrefly.org/) 1.4.1
30
30
  * [pyright](https://microsoft.github.io/pyright/) 1.1.414
31
- * [ty](https://docs.astral.sh/ty/) 0.0.59
31
+ * [ty](https://docs.astral.sh/ty/) 0.0.99
32
32
 
33
33
  It was generated from typeshed commit
34
- [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
34
+ [`8e21ebd653f6cad1ef9e6518bd81833d39c2c863`](https://github.com/python/typeshed/commit/8e21ebd653f6cad1ef9e6518bd81833d39c2c863).
35
35
  """, content-type = "text/markdown" }
36
36
  classifiers = [
37
37
  "Programming Language :: Python :: 3",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-PyMySQL
3
- Version: 1.2.0.20260923
3
+ Version: 1.2.4.20261116
4
4
  Summary: Typing stubs for PyMySQL
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/python/typeshed
@@ -21,7 +21,7 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
21
21
  for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package. It can be used by type checkers
22
22
  to check code that uses `PyMySQL`. This version of
23
23
  `types-PyMySQL` aims to provide accurate annotations for
24
- `PyMySQL==1.2.*`.
24
+ `PyMySQL~=1.2.4`.
25
25
 
26
26
  This package is part of the [typeshed project](https://github.com/python/typeshed).
27
27
  All fixes for types and metadata should be contributed there.
@@ -31,10 +31,10 @@ for more details. The source for this package can be found in the
31
31
  directory.
32
32
 
33
33
  This package was tested with the following type checkers:
34
- * [mypy](https://www.mypy-lang.org/) 2.3.0
35
- * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
34
+ * [mypy](https://www.mypy-lang.org/) 2.4.1
35
+ * [pyrefly](https://pyrefly.org/) 1.4.1
36
36
  * [pyright](https://microsoft.github.io/pyright/) 1.1.414
37
- * [ty](https://docs.astral.sh/ty/) 0.0.59
37
+ * [ty](https://docs.astral.sh/ty/) 0.0.99
38
38
 
39
39
  It was generated from typeshed commit
40
- [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
40
+ [`8e21ebd653f6cad1ef9e6518bd81833d39c2c863`](https://github.com/python/typeshed/commit/8e21ebd653f6cad1ef9e6518bd81833d39c2c863).