Skip to content

Commit df3b5f3

Browse files
authored
[PyMySQL] Fix issue with import constants attributes (#14393)
1 parent 1164c0f commit df3b5f3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

stubs/PyMySQL/pymysql/__init__.pyi

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ from _typeshed import ReadableBuffer
22
from collections.abc import Iterable
33
from typing import Final, SupportsBytes, SupportsIndex
44

5-
from . import connections, constants, converters, cursors
6-
from .connections import Connection as Connection
5+
from . import connections as connections, constants as constants, converters as converters, cursors as cursors
76
from .constants import FIELD_TYPE as FIELD_TYPE
87
from .err import (
98
DatabaseError as DatabaseError,
@@ -58,9 +57,9 @@ def thread_safe() -> bool: ...
5857

5958
NULL: str
6059

61-
# pymysql/__init__.py says "Connect = connect = Connection = connections.Connection"
62-
Connect = Connection
63-
connect = Connection
60+
Connect = connections.Connection
61+
connect = connections.Connection
62+
Connection = connections.Connection
6463

6564
__all__ = [
6665
"BINARY",

0 commit comments

Comments
 (0)