types-PyMySQL 1.2.0.20260724__tar.gz → 1.2.0.20260923__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.20260724 → types_pymysql-1.2.0.20260923}/CHANGELOG.md +8 -0
  2. {types_pymysql-1.2.0.20260724/types_PyMySQL.egg-info → types_pymysql-1.2.0.20260923}/PKG-INFO +6 -4
  3. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/README.md +5 -3
  4. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/connections.pyi +7 -12
  5. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/converters.pyi +5 -6
  6. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/cursors.pyi +18 -6
  7. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pyproject.toml +8 -4
  8. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923/types_PyMySQL.egg-info}/PKG-INFO +6 -4
  9. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/LICENSE +0 -0
  10. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/MANIFEST.in +0 -0
  11. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/METADATA.toml +0 -0
  12. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/__init__.pyi +0 -0
  13. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/_auth.pyi +0 -0
  14. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/charset.pyi +0 -0
  15. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/CLIENT.pyi +0 -0
  16. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/COMMAND.pyi +0 -0
  17. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/CR.pyi +0 -0
  18. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/ER.pyi +0 -0
  19. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/FIELD_TYPE.pyi +0 -0
  20. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/FLAG.pyi +0 -0
  21. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/SERVER_STATUS.pyi +0 -0
  22. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/constants/__init__.pyi +0 -0
  23. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/err.pyi +0 -0
  24. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/optionfile.pyi +0 -0
  25. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/protocol.pyi +0 -0
  26. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/py.typed +0 -0
  27. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/pymysql-stubs/times.pyi +0 -0
  28. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/setup.cfg +0 -0
  29. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/types_PyMySQL.egg-info/SOURCES.txt +0 -0
  30. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/types_PyMySQL.egg-info/dependency_links.txt +0 -0
  31. {types_pymysql-1.2.0.20260724 → types_pymysql-1.2.0.20260923}/types_PyMySQL.egg-info/top_level.txt +0 -0
@@ -1,3 +1,11 @@
1
+ ## [1.2.0.20260923](https://pypi.org/project/types-PyMySQL/1.2.0.20260923/) (2026-09-23)
2
+
3
+ * Update to 1.2.3 ([#16426](https://github.com/python/typeshed/pull/16426))
4
+
5
+ ## [1.2.0.20260807](https://pypi.org/project/types-PyMySQL/1.2.0.20260807/) (2026-08-07)
6
+
7
+ * Run Pyrefly on typeshed stubs in CI ([#16155](https://github.com/python/typeshed/pull/16155))
8
+
1
9
  ## [1.2.0.20260724](https://pypi.org/project/types-PyMySQL/1.2.0.20260724/) (2026-07-24)
2
10
 
3
11
  * Replace `NoReturn` with `Never` ([#16079](https://github.com/python/typeshed/pull/16079))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-PyMySQL
3
- Version: 1.2.0.20260724
3
+ Version: 1.2.0.20260923
4
4
  Summary: Typing stubs for PyMySQL
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/python/typeshed
@@ -31,8 +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://github.com/python/mypy/) 2.3.0
35
- * [pyright](https://github.com/microsoft/pyright) 1.1.411
34
+ * [mypy](https://www.mypy-lang.org/) 2.3.0
35
+ * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
36
+ * [pyright](https://microsoft.github.io/pyright/) 1.1.414
37
+ * [ty](https://docs.astral.sh/ty/) 0.0.59
36
38
 
37
39
  It was generated from typeshed commit
38
- [`97e83f65cee88c0c978fa34668d9f59b8c362fce`](https://github.com/python/typeshed/commit/97e83f65cee88c0c978fa34668d9f59b8c362fce).
40
+ [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
@@ -14,8 +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://github.com/python/mypy/) 2.3.0
18
- * [pyright](https://github.com/microsoft/pyright) 1.1.411
17
+ * [mypy](https://www.mypy-lang.org/) 2.3.0
18
+ * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
19
+ * [pyright](https://microsoft.github.io/pyright/) 1.1.414
20
+ * [ty](https://docs.astral.sh/ty/) 0.0.59
19
21
 
20
22
  It was generated from typeshed commit
21
- [`97e83f65cee88c0c978fa34668d9f59b8c362fce`](https://github.com/python/typeshed/commit/97e83f65cee88c0c978fa34668d9f59b8c362fce).
23
+ [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
@@ -1,12 +1,13 @@
1
- from _typeshed import FileDescriptorOrPath, Incomplete, Unused
2
- from collections.abc import Callable, Mapping
1
+ from _typeshed import Incomplete, Unused
2
+ from collections.abc import Callable
3
3
  from socket import _Address, socket as _socket
4
4
  from ssl import SSLContext, _PasswordType
5
- from typing import Any, AnyStr, Generic, Literal, overload
5
+ from typing import Any, Generic, Literal, overload
6
6
  from typing_extensions import Self, TypeVar, deprecated
7
7
 
8
8
  from .charset import charset_by_id as charset_by_id, charset_by_name as charset_by_name
9
9
  from .constants import CLIENT as CLIENT, COMMAND as COMMAND, FIELD_TYPE as FIELD_TYPE, SERVER_STATUS as SERVER_STATUS
10
+ from .converters import _EscaperMapping
10
11
  from .cursors import Cursor
11
12
  from .err import (
12
13
  DatabaseError,
@@ -210,9 +211,9 @@ class Connection(Generic[_C]):
210
211
  def begin(self) -> None: ...
211
212
  def rollback(self) -> None: ...
212
213
  def select_db(self, db) -> None: ...
213
- def escape(self, obj, mapping: Mapping[str, Incomplete] | None = None): ...
214
- def literal(self, obj): ...
215
- def escape_string(self, s: AnyStr) -> AnyStr: ...
214
+ def escape(self, obj: object, mapping: _EscaperMapping = None) -> str: ...
215
+ @deprecated("literal() is deprecated and will be removed in the next version.")
216
+ def literal(self, obj: object) -> str: ...
216
217
 
217
218
  @overload
218
219
  def cursor(self, cursor: None = None) -> _C: ...
@@ -273,9 +274,3 @@ class MySQLResult:
273
274
  first_packet: Incomplete
274
275
  def read(self) -> None: ...
275
276
  def init_unbuffered_query(self) -> None: ...
276
-
277
- class LoadLocalFile:
278
- filename: FileDescriptorOrPath
279
- connection: Connection[Any]
280
- def __init__(self, filename: FileDescriptorOrPath, connection: Connection[Any]) -> None: ...
281
- def send_data(self) -> None: ...
@@ -10,16 +10,15 @@ from typing_extensions import Never, deprecated
10
10
  _EscaperMapping: TypeAlias = Mapping[type[object], Callable[..., str]] | None
11
11
  _T = TypeVar("_T")
12
12
 
13
- def escape_item(val: object, charset: object, mapping: _EscaperMapping = None) -> str: ...
14
- @deprecated("dict cannot be used as parameter. It didn't produce valid SQL and might cause SQL injection.")
15
- def escape_dict(val: Mapping[str, object], charset: object, mapping: _EscaperMapping = None) -> Never: ...
16
- def escape_sequence(val: Sequence[object], charset: object, mapping: _EscaperMapping = None) -> str: ...
17
- def escape_set(val: set[object], charset: object, mapping: _EscaperMapping = None) -> str: ...
13
+ def escape_item(val: object, charset: object = None, mapping: _EscaperMapping = None) -> str: ...
14
+ def escape_not_supported(val: object, charset: object = None, mapping: _EscaperMapping = None) -> Never: ...
15
+ def escape_sequence(val: Sequence[object], charset: object = None, mapping: _EscaperMapping = None) -> str: ...
16
+ @deprecated("escape_set is deprecated")
17
+ def escape_set(val: set[object], charset: object = None, mapping: _EscaperMapping = None) -> str: ...
18
18
  def escape_bool(value: bool, mapping: _EscaperMapping = None) -> str: ...
19
19
  def escape_int(value: int, mapping: _EscaperMapping = None) -> str: ...
20
20
  def escape_float(value: float, mapping: _EscaperMapping = None) -> str: ...
21
21
  def escape_string(value: str, mapping: _EscaperMapping = None) -> str: ...
22
- def escape_bytes_prefixed(value: bytes, mapping: _EscaperMapping = None) -> str: ...
23
22
  def escape_bytes(value: bytes, mapping: _EscaperMapping = None) -> str: ...
24
23
  def escape_str(value: str, mapping: _EscaperMapping = None) -> str: ...
25
24
  def escape_None(value: None, mapping: _EscaperMapping = None) -> str: ...
@@ -1,11 +1,12 @@
1
1
  import re
2
2
  from collections.abc import Iterable, Iterator
3
- from typing import Any, ClassVar
4
- from typing_extensions import Self
3
+ from typing import Any, ClassVar, TypeAlias, overload
4
+ from typing_extensions import Self, deprecated
5
5
 
6
6
  from .connections import Connection
7
7
 
8
8
  RE_INSERT_VALUES: re.Pattern[str]
9
+ _Args: TypeAlias = list[Any] | tuple[Any, ...] | dict[str, Any]
9
10
 
10
11
  class Cursor:
11
12
  max_stmt_length: ClassVar[int]
@@ -23,8 +24,19 @@ class Cursor:
23
24
  def setinputsizes(self, *args) -> None: ...
24
25
  def setoutputsizes(self, *args) -> None: ...
25
26
  def nextset(self) -> bool | None: ...
26
- def mogrify(self, query: str, args: object = None) -> str: ...
27
- def execute(self, query: str, args: object = None) -> int: ...
27
+
28
+ @overload
29
+ def mogrify(self, query: str, args: _Args | None = None) -> str: ...
30
+ @overload
31
+ @deprecated("single argument is deprecated and will be removed in the next version.")
32
+ def mogrify(self, query: str, args: object) -> str: ...
33
+
34
+ @overload
35
+ def execute(self, query: str, args: _Args | None = None) -> int: ...
36
+ @overload
37
+ @deprecated("single argument is deprecated and will be removed in the next version.")
38
+ def execute(self, query: str, args: object) -> int: ...
39
+
28
40
  def executemany(self, query: str, args: Iterable[object]) -> int | None: ...
29
41
  def callproc(self, procname: str, args: Iterable[Any] = ()) -> Any: ...
30
42
  def scroll(self, value: int, mode: str = "relative") -> None: ...
@@ -51,8 +63,8 @@ class SSCursor(Cursor):
51
63
  def fetchall_unbuffered(self) -> Iterator[tuple[Any, ...]]: ...
52
64
  def scroll(self, value: int, mode: str = "relative") -> None: ...
53
65
 
54
- class DictCursor(DictCursorMixin, Cursor): ... # type: ignore[misc]
66
+ class DictCursor(DictCursorMixin, Cursor): ... # type: ignore[misc] # pyrefly: ignore [inconsistent-inheritance]
55
67
 
56
- class SSDictCursor(DictCursorMixin, SSCursor): # type: ignore[misc]
68
+ class SSDictCursor(DictCursorMixin, SSCursor): # type: ignore[misc] # pyrefly: ignore [inconsistent-inheritance]
57
69
  def fetchall_unbuffered(self) -> Iterator[dict[str, Any]]: ... # type: ignore[override]
58
70
  def read_next(self) -> dict[str, Any] | None: ... # type: ignore[override]
@@ -4,7 +4,7 @@ requires = ["setuptools>=82.0.1"]
4
4
 
5
5
  [project]
6
6
  name = "types-PyMySQL"
7
- version = "1.2.0.20260724"
7
+ version = "1.2.0.20260923"
8
8
  license = "Apache-2.0"
9
9
  license-files = ["LICENSE"]
10
10
  description = "Typing stubs for PyMySQL"
@@ -25,11 +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://github.com/python/mypy/) 2.3.0
29
- * [pyright](https://github.com/microsoft/pyright) 1.1.411
28
+ * [mypy](https://www.mypy-lang.org/) 2.3.0
29
+ * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
30
+ * [pyright](https://microsoft.github.io/pyright/) 1.1.414
31
+ * [ty](https://docs.astral.sh/ty/) 0.0.59
30
32
 
31
33
  It was generated from typeshed commit
32
- [`97e83f65cee88c0c978fa34668d9f59b8c362fce`](https://github.com/python/typeshed/commit/97e83f65cee88c0c978fa34668d9f59b8c362fce).
34
+ [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).
33
35
  """, content-type = "text/markdown" }
34
36
  classifiers = [
35
37
  "Programming Language :: Python :: 3",
@@ -38,6 +40,8 @@ classifiers = [
38
40
  requires-python = ">=3.10"
39
41
  dependencies = []
40
42
 
43
+
44
+
41
45
  [project.urls]
42
46
  "Homepage" = "https://github.com/python/typeshed"
43
47
  "GitHub" = "https://github.com/python/typeshed"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-PyMySQL
3
- Version: 1.2.0.20260724
3
+ Version: 1.2.0.20260923
4
4
  Summary: Typing stubs for PyMySQL
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/python/typeshed
@@ -31,8 +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://github.com/python/mypy/) 2.3.0
35
- * [pyright](https://github.com/microsoft/pyright) 1.1.411
34
+ * [mypy](https://www.mypy-lang.org/) 2.3.0
35
+ * [pyrefly](https://pyrefly.org/) 1.3.0.dev1
36
+ * [pyright](https://microsoft.github.io/pyright/) 1.1.414
37
+ * [ty](https://docs.astral.sh/ty/) 0.0.59
36
38
 
37
39
  It was generated from typeshed commit
38
- [`97e83f65cee88c0c978fa34668d9f59b8c362fce`](https://github.com/python/typeshed/commit/97e83f65cee88c0c978fa34668d9f59b8c362fce).
40
+ [`6d045a9fff15db83b49b89b14b8dd47ff382470c`](https://github.com/python/typeshed/commit/6d045a9fff15db83b49b89b14b8dd47ff382470c).