Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions stubs/PyMySQL/pymysql/_auth.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
from _typeshed import Incomplete, ReadableBuffer
from _hashlib import HASH
from _typeshed import ReadableBuffer
from functools import partial
from typing import Final

from .protocol import MysqlPacket

DEBUG: Final[bool]
SCRAMBLE_LENGTH: Final[int]
sha1_new: Incomplete
sha1_new: partial[HASH]

def scramble_native_password(password: ReadableBuffer | None, message: ReadableBuffer | None) -> bytes: ...
def ed25519_password(password: ReadableBuffer, scramble: ReadableBuffer) -> bytes: ...
def sha2_rsa_encrypt(password: bytes, salt: bytes, public_key: bytes) -> bytes: ...
def sha256_password_auth(conn, pkt): ...
def scramble_caching_sha2(password: ReadableBuffer, nonce: ReadableBuffer) -> bytes: ...
def caching_sha2_password_auth(conn, pkt) -> Incomplete | None: ...
def caching_sha2_password_auth(conn, pkt) -> MysqlPacket | None: ...
5 changes: 2 additions & 3 deletions stubs/PyMySQL/pymysql/connections.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,11 @@ class MySQLResult:
warning_count: int
message: str | None
field_count: int
description: Incomplete
rows: Incomplete
description: tuple[tuple[str, int, None, int, int, int, bool], ...] | None
rows: tuple[tuple[Any, ...], ...] | None
has_next: bool | None
unbuffered_active: bool
def __init__(self, connection: Connection[Any]) -> None: ...
def __del__(self) -> None: ...
first_packet: Incomplete
def read(self) -> None: ...
def init_unbuffered_query(self) -> None: ...
3 changes: 1 addition & 2 deletions stubs/PyMySQL/pymysql/protocol.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from typing import Final

DEBUG: Final[bool]
Expand All @@ -25,7 +24,7 @@ class MysqlPacket:
def read_uint32(self): ...
def read_uint64(self): ...
def read_string(self): ...
def read_length_encoded_integer(self) -> Incomplete | None: ...
def read_length_encoded_integer(self) -> int | None: ...
def read_length_coded_string(self): ...
def read_struct(self, fmt: str): ...
def is_ok_packet(self) -> bool: ...
Expand Down
Loading