From df3b5f3cdd7736079ad3124db244e4553625590c Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Thu, 10 Jul 2025 11:56:51 +0000 Subject: [PATCH] [PyMySQL] Fix issue with import constants attributes (#14393) --- stubs/PyMySQL/pymysql/__init__.pyi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stubs/PyMySQL/pymysql/__init__.pyi b/stubs/PyMySQL/pymysql/__init__.pyi index 70aa0a874..5d4a4a3e2 100644 --- a/stubs/PyMySQL/pymysql/__init__.pyi +++ b/stubs/PyMySQL/pymysql/__init__.pyi @@ -2,8 +2,7 @@ from _typeshed import ReadableBuffer from collections.abc import Iterable from typing import Final, SupportsBytes, SupportsIndex -from . import connections, constants, converters, cursors -from .connections import Connection as Connection +from . import connections as connections, constants as constants, converters as converters, cursors as cursors from .constants import FIELD_TYPE as FIELD_TYPE from .err import ( DatabaseError as DatabaseError, @@ -58,9 +57,9 @@ def thread_safe() -> bool: ... NULL: str -# pymysql/__init__.py says "Connect = connect = Connection = connections.Connection" -Connect = Connection -connect = Connection +Connect = connections.Connection +connect = connections.Connection +Connection = connections.Connection __all__ = [ "BINARY",