Skip to content

Commit 3462ed8

Browse files
committed
add type_check_only to type dictionaries
1 parent 59265bf commit 3462ed8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stubs/cysqlite/cysqlite/aio.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import asyncio
22
import queue
33
import types
44
from collections.abc import Callable, Mapping, Sequence
5-
from typing import Any, Literal, TypeAlias, TypedDict
5+
from typing import Any, Literal, TypeAlias, TypedDict, type_check_only
66
from typing_extensions import Buffer, Self, Unpack
77

88
from ._cysqlite import Atomic, Connection, Cursor, Row, Savepoint, Transaction
@@ -19,6 +19,7 @@ class _BackupKwargs(TypedDict, total=False):
1919
progress: Callable[[int, int, bool], None] | None
2020
src_name: str | None
2121

22+
@type_check_only
2223
class _ConnectKwargs(TypedDict, total=False):
2324
flags: int | None
2425
timeout: float
@@ -30,6 +31,7 @@ class _ConnectKwargs(TypedDict, total=False):
3031
autoconnect: bool
3132
pragmas: dict[str, Any] | None
3233

34+
@type_check_only
3335
class _CheckPointKwargs(TypedDict, total=False):
3436
full: bool
3537
truncate: bool

0 commit comments

Comments
 (0)