Skip to content

Commit 17b5c9c

Browse files
committed
WL#15942 Improve type hints and standardize byte type handling
With this WL, signatures of methods and properties listed in the public interfaces are improved. Additionally, for methods working with byte strings, we enforce `bytes` usage over `bytearray` across the source code as long as no performance degradation is incurred. Change-Id: Ib103f45f0e5a3dae02d75732b377dc16cd30ca59
1 parent 27b7ef8 commit 17b5c9c

30 files changed

+1978
-915
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ v8.3.0
1414
- WL#16015: Remove use of removed COM_ commands
1515
- WL#15983: Stop using mysql_ssl_set api
1616
- WL#15982: Remove use of mysql_shutdown
17+
- WL#15942: Improve type hints and standardize byte type handling
1718

1819
v8.2.0
1920
======

lib/mysql/connector/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
Connect = connect
7676

7777
__version_info__ = version.VERSION
78+
"""This attribute indicates the Connector/Python version as an array
79+
of version components."""
80+
7881
__version__ = version.VERSION_TEXT
82+
"""This attribute indicates the Connector/Python version as a string."""
7983

8084
__all__ = [
8185
"MySQLConnection",

0 commit comments

Comments
 (0)