8000 BUG#35547876: C/Python 8.1.0 type check build fails in the pb2 branch · dveeden/mysql-connector-python@8d8a362 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d8a362

Browse files
committed
BUG#35547876: C/Python 8.1.0 type check build fails in the pb2 branch
The latest version of the `django-stubs` package brings changes that uncover a new type-check issue. However, this is not an actual issue, that's to say, there is no potential bug, and the connector's functionality is not compromised. With this patch, a `type-ignore` comment is added to ignore the issue. Change-Id: I2736619735cab16388b9cd63c1b461583e27bf4a
1 parent db9bb2b commit 8d8a362

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ v8.2.0
1212
======
1313

1414
- WL#15623: Improve the authentication module
15+
- BUG#35547876: C/Python 8.1.0 type check build fails in the pb2 branch
1516
- BUG#35544123: Kerberos unit tests configuration is outdated
1617

1718
v8.1.0

lib/mysql/connector/django/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ def check_constraints(self, table_names: Optional[List[str]] = None) -> None:
479479
)
480480
if not primary_key_column_name:
481481
continue
482-
key_columns = self.introspection.get_key_columns(cursor, table_name)
482+
key_columns = self.introspection.get_key_columns( # type: ignore[attr-defined]
483+
cursor, table_name
484+
)
483485
for (
484486
column_name,
485487
referenced_table_name,

0 commit comments

Comments
 (0)
0