Skip to content

Commit 0860b02

Browse files
committed
Typeshed cherry-pick: sqlite3: Avoid optional type for 'description' (#7842)
1 parent ae03fdb commit 0860b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/typeshed/stdlib/sqlite3/dbapi2.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,9 @@ class Cursor(Iterator[Any]):
374374
arraysize: int
375375
@property
376376
def connection(self) -> Connection: ...
377+
# May be None, but using | Any instead to avoid slightly annoying false positives.
377378
@property
378-
def description(self) -> tuple[tuple[str, None, None, None, None, None, None], ...] | None: ...
379+
def description(self) -> tuple[tuple[str, None, None, None, None, None, None], ...] | Any: ...
379380
@property
380381
def lastrowid(self) -> int | None: ...
381382
row_factory: Callable[[Cursor, Row[Any]], object] | None

0 commit comments

Comments
 (0)