Skip to content
Open
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
8 changes: 4 additions & 4 deletions stubs/PyMySQL/pymysql/converters.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ def Decimal2Literal(o: Decimal, d: Unused) -> str: ...

DATETIME_RE: re.Pattern[str]

def convert_datetime(obj: str | bytes) -> datetime.datetime | str: ...
def convert_datetime(obj: str | bytes | bytearray) -> datetime.date | str: ...

TIMEDELTA_RE: re.Pattern[str]

def convert_timedelta(obj: str | bytes) -> datetime.timedelta | str: ...
def convert_timedelta(obj: str | bytes | bytearray) -> datetime.timedelta | str: ...

TIME_RE: re.Pattern[str]

def convert_time(obj: str | bytes) -> datetime.time | str: ...
def convert_date(obj: str | bytes) -> datetime.date | str: ...
def convert_time(obj: str | bytes | bytearray) -> datetime.time | str: ...
def convert_date(obj: str | bytes | bytearray) -> datetime.date | str: ...
def through(x: _T) -> _T: ...

convert_bit = through
Expand Down
Loading