types-PyMySQL 1.1.0.1__tar.gz → 1.1.0.20240524__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 (27) hide show
  1. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/CHANGELOG.md +10 -0
  2. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/PKG-INFO +13 -7
  3. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/__init__.pyi +5 -0
  4. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/connections.pyi +4 -1
  5. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/converters.pyi +4 -3
  6. types-PyMySQL-1.1.0.20240524/pymysql-stubs/py.typed +1 -0
  7. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/setup.py +13 -7
  8. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/types_PyMySQL.egg-info/PKG-INFO +13 -7
  9. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/types_PyMySQL.egg-info/SOURCES.txt +1 -0
  10. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/MANIFEST.in +0 -0
  11. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/METADATA.toml +0 -0
  12. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/charset.pyi +0 -0
  13. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/CLIENT.pyi +0 -0
  14. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/COMMAND.pyi +0 -0
  15. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/CR.pyi +0 -0
  16. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/ER.pyi +0 -0
  17. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/FIELD_TYPE.pyi +0 -0
  18. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/FLAG.pyi +0 -0
  19. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/SERVER_STATUS.pyi +0 -0
  20. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/constants/__init__.pyi +0 -0
  21. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/cursors.pyi +0 -0
  22. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/err.pyi +0 -0
  23. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/times.pyi +0 -0
  24. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/pymysql-stubs/util.pyi +0 -0
  25. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/setup.cfg +0 -0
  26. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/types_PyMySQL.egg-info/dependency_links.txt +0 -0
  27. {types-PyMySQL-1.1.0.1 → types-PyMySQL-1.1.0.20240524}/types_PyMySQL.egg-info/top_level.txt +0 -0
@@ -1,3 +1,13 @@
1
+ ## 1.1.0.20240524 (2024-05-24)
2
+
3
+ Update PyMySQL to 1.1.1 (#12001)
4
+
5
+ Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6
+
7
+ ## 1.1.0.20240425 (2024-04-25)
8
+
9
+ Bump pyright to v1.1.360 (#11810)
10
+
1
11
  ## 1.1.0.1 (2023-07-20)
2
12
 
3
13
  Add an upstream_repository field to METADATA.toml (#10487)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: types-PyMySQL
3
- Version: 1.1.0.1
3
+ Version: 1.1.0.20240524
4
4
  Summary: Typing stubs for PyMySQL
5
5
  Home-page: https://github.com/python/typeshed
6
6
  License: Apache-2.0 license
@@ -11,17 +11,23 @@ Project-URL: Chat, https://gitter.im/python/typing
11
11
  Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Typing :: Stubs Only
14
+ Requires-Python: >=3.8
14
15
  Description-Content-Type: text/markdown
15
16
 
16
17
  ## Typing stubs for PyMySQL
17
18
 
18
- This is a PEP 561 type stub package for the `PyMySQL` package. It
19
- can be used by type-checking tools like
19
+ This is a [PEP 561](https://peps.python.org/pep-0561/)
20
+ type stub package for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package.
21
+ It can be used by type-checking tools like
20
22
  [mypy](https://github.com/python/mypy/),
21
23
  [pyright](https://github.com/microsoft/pyright),
22
24
  [pytype](https://github.com/google/pytype/),
23
25
  PyCharm, etc. to check code that uses
24
- `PyMySQL`. The source for this package can be found at
26
+ `PyMySQL`.
27
+
28
+ This version of `types-PyMySQL` aims to provide accurate annotations
29
+ for `PyMySQL==1.1.*`.
30
+ The source for this package can be found at
25
31
  https://github.com/python/typeshed/tree/main/stubs/PyMySQL. All fixes for
26
32
  types and metadata should be contributed there.
27
33
 
@@ -30,6 +36,6 @@ If you find that annotations are missing, feel free to contribute and help compl
30
36
 
31
37
 
32
38
  See https://github.com/python/typeshed/blob/main/README.md for more details.
33
- This package was generated from typeshed commit `afe18e95a9592434e93b648de5194cfe54443f84` and was tested
34
- with mypy 1.4.1, pyright 1.1.318, and
35
- pytype 2023.6.16.
39
+ This package was generated from typeshed commit `ac6c61ba04c3d3abf476570de04a9afe7447890b` and was tested
40
+ with mypy 1.10.0, pyright 1.1.364, and
41
+ pytype 2024.4.11.
@@ -1,3 +1,5 @@
1
+ from typing import Final
2
+
1
3
  from .connections import Connection as Connection
2
4
  from .constants import FIELD_TYPE as FIELD_TYPE
3
5
  from .converters import escape_dict as escape_dict, escape_sequence as escape_sequence, escape_string as escape_string
@@ -23,6 +25,9 @@ from .times import (
23
25
  TimestampFromTicks as TimestampFromTicks,
24
26
  )
25
27
 
28
+ VERSION: Final[tuple[str | int, ...]]
29
+ VERSION_STRING: Final[str]
30
+
26
31
  threadsafety: int
27
32
  apilevel: str
28
33
  paramstyle: str
@@ -1,6 +1,7 @@
1
1
  from _typeshed import Incomplete
2
2
  from collections.abc import Mapping
3
3
  from socket import socket as _socket
4
+ from ssl import _PasswordType
4
5
  from typing import Any, AnyStr, Generic, TypeVar, overload
5
6
  from typing_extensions import Self
6
7
 
@@ -103,6 +104,7 @@ class Connection(Generic[_C]):
103
104
  ssl_cert=None,
104
105
  ssl_disabled=None,
105
106
  ssl_key=None,
107
+ ssl_key_password: _PasswordType | None = None,
106
108
  ssl_verify_cert=None,
107
109
  ssl_verify_identity=None,
108
110
  read_default_group: Incomplete | None = None,
@@ -124,7 +126,8 @@ class Connection(Generic[_C]):
124
126
  ) -> None: ...
125
127
  @overload
126
128
  def __init__(
127
- self: Connection[_C], # different between overloads
129
+ # different between overloads:
130
+ self: Connection[_C], # pyright: ignore[reportInvalidTypeVarUse] #11780
128
131
  *,
129
132
  host: str | None = None,
130
133
  user: Incomplete | None = None,
@@ -3,14 +3,15 @@ import time
3
3
  from _typeshed import Unused
4
4
  from collections.abc import Callable, Mapping, Sequence
5
5
  from decimal import Decimal
6
- from typing import Any, TypeVar
7
- from typing_extensions import TypeAlias
6
+ from typing import Any, NoReturn, TypeVar
7
+ from typing_extensions import TypeAlias, deprecated
8
8
 
9
9
  _EscaperMapping: TypeAlias = Mapping[type[object], Callable[..., str]] | None
10
10
  _T = TypeVar("_T")
11
11
 
12
12
  def escape_item(val: object, charset: object, mapping: _EscaperMapping = None) -> str: ...
13
- def escape_dict(val: Mapping[str, object], charset: object, mapping: _EscaperMapping = None) -> dict[str, str]: ...
13
+ @deprecated("dict cannot be used as parameter. It didn't produce valid SQL and might cause SQL injection.")
14
+ def escape_dict(val: Mapping[str, object], charset: object, mapping: _EscaperMapping = None) -> NoReturn: ...
14
15
  def escape_sequence(val: Sequence[object], charset: object, mapping: _EscaperMapping = None) -> str: ...
15
16
  def escape_set(val: set[object], charset: object, mapping: _EscaperMapping = None) -> str: ...
16
17
  def escape_bool(value: bool, mapping: _EscaperMapping = None) -> str: ...
@@ -0,0 +1 @@
1
+ partial
@@ -5,13 +5,18 @@ description = "Typing stubs for PyMySQL"
5
5
  long_description = '''
6
6
  ## Typing stubs for PyMySQL
7
7
 
8
- This is a PEP 561 type stub package for the `PyMySQL` package. It
9
- can be used by type-checking tools like
8
+ This is a [PEP 561](https://peps.python.org/pep-0561/)
9
+ type stub package for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package.
10
+ It can be used by type-checking tools like
10
11
  [mypy](https://github.com/python/mypy/),
11
12
  [pyright](https://github.com/microsoft/pyright),
12
13
  [pytype](https://github.com/google/pytype/),
13
14
  PyCharm, etc. to check code that uses
14
- `PyMySQL`. The source for this package can be found at
15
+ `PyMySQL`.
16
+
17
+ This version of `types-PyMySQL` aims to provide accurate annotations
18
+ for `PyMySQL==1.1.*`.
19
+ The source for this package can be found at
15
20
  https://github.com/python/typeshed/tree/main/stubs/PyMySQL. All fixes for
16
21
  types and metadata should be contributed there.
17
22
 
@@ -20,13 +25,13 @@ If you find that annotations are missing, feel free to contribute and help compl
20
25
 
21
26
 
22
27
  See https://github.com/python/typeshed/blob/main/README.md for more details.
23
- This package was generated from typeshed commit `afe18e95a9592434e93b648de5194cfe54443f84` and was tested
24
- with mypy 1.4.1, pyright 1.1.318, and
25
- pytype 2023.6.16.
28
+ This package was generated from typeshed commit `ac6c61ba04c3d3abf476570de04a9afe7447890b` and was tested
29
+ with mypy 1.10.0, pyright 1.1.364, and
30
+ pytype 2024.4.11.
26
31
  '''.lstrip()
27
32
 
28
33
  setup(name=name,
29
- version="1.1.0.1",
34
+ version="1.1.0.20240524",
30
35
  description=description,
31
36
  long_description=long_description,
32
37
  long_description_content_type="text/markdown",
@@ -41,6 +46,7 @@ setup(name=name,
41
46
  packages=['pymysql-stubs'],
42
47
  package_data={'pymysql-stubs': ['__init__.pyi', 'charset.pyi', 'connections.pyi', 'constants/CLIENT.pyi', 'constants/COMMAND.pyi', 'constants/CR.pyi', 'constants/ER.pyi', 'constants/FIELD_TYPE.pyi', 'constants/FLAG.pyi', 'constants/SERVER_STATUS.pyi', 'constants/__init__.pyi', 'converters.pyi', 'cursors.pyi', 'err.pyi', 'times.pyi', 'util.pyi', 'METADATA.toml', 'py.typed']},
43
48
  license="Apache-2.0 license",
49
+ python_requires=">=3.8",
44
50
  classifiers=[
45
51
  "License :: OSI Approved :: Apache Software License",
46
52
  "Programming Language :: Python :: 3",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: types-PyMySQL
3
- Version: 1.1.0.1
3
+ Version: 1.1.0.20240524
4
4
  Summary: Typing stubs for PyMySQL
5
5
  Home-page: https://github.com/python/typeshed
6
6
  License: Apache-2.0 license
@@ -11,17 +11,23 @@ Project-URL: Chat, https://gitter.im/python/typing
11
11
  Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Typing :: Stubs Only
14
+ Requires-Python: >=3.8
14
15
  Description-Content-Type: text/markdown
15
16
 
16
17
  ## Typing stubs for PyMySQL
17
18
 
18
- This is a PEP 561 type stub package for the `PyMySQL` package. It
19
- can be used by type-checking tools like
19
+ This is a [PEP 561](https://peps.python.org/pep-0561/)
20
+ type stub package for the [`PyMySQL`](https://github.com/PyMySQL/PyMySQL) package.
21
+ It can be used by type-checking tools like
20
22
  [mypy](https://github.com/python/mypy/),
21
23
  [pyright](https://github.com/microsoft/pyright),
22
24
  [pytype](https://github.com/google/pytype/),
23
25
  PyCharm, etc. to check code that uses
24
- `PyMySQL`. The source for this package can be found at
26
+ `PyMySQL`.
27
+
28
+ This version of `types-PyMySQL` aims to provide accurate annotations
29
+ for `PyMySQL==1.1.*`.
30
+ The source for this package can be found at
25
31
  https://github.com/python/typeshed/tree/main/stubs/PyMySQL. All fixes for
26
32
  types and metadata should be contributed there.
27
33
 
@@ -30,6 +36,6 @@ If you find that annotations are missing, feel free to contribute and help compl
30
36
 
31
37
 
32
38
  See https://github.com/python/typeshed/blob/main/README.md for more details.
33
- This package was generated from typeshed commit `afe18e95a9592434e93b648de5194cfe54443f84` and was tested
34
- with mypy 1.4.1, pyright 1.1.318, and
35
- pytype 2023.6.16.
39
+ This package was generated from typeshed commit `ac6c61ba04c3d3abf476570de04a9afe7447890b` and was tested
40
+ with mypy 1.10.0, pyright 1.1.364, and
41
+ pytype 2024.4.11.
@@ -8,6 +8,7 @@ pymysql-stubs/connections.pyi
8
8
  pymysql-stubs/converters.pyi
9
9
  pymysql-stubs/cursors.pyi
10
10
  pymysql-stubs/err.pyi
11
+ pymysql-stubs/py.typed
11
12
  pymysql-stubs/times.pyi
12
13
  pymysql-stubs/util.pyi
13
14
  pymysql-stubs/constants/CLIENT.pyi