mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use MaybeNone (alias to Any) when applicable (#12855)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, StrOrBytesPath, SupportsLenAndGetItem, Unused
|
||||
from _typeshed import MaybeNone, ReadableBuffer, StrOrBytesPath, SupportsLenAndGetItem, Unused
|
||||
from collections.abc import Callable, Generator, Iterable, Iterator, Mapping, Sequence
|
||||
from sqlite3.dbapi2 import (
|
||||
PARSE_COLNAMES as PARSE_COLNAMES,
|
||||
@@ -401,9 +401,9 @@ class Cursor:
|
||||
arraysize: int
|
||||
@property
|
||||
def connection(self) -> Connection: ...
|
||||
# May be None, but using | Any instead to avoid slightly annoying false positives.
|
||||
# May be None, but using `| MaybeNone` (`| Any`) instead to avoid slightly annoying false positives.
|
||||
@property
|
||||
def description(self) -> tuple[tuple[str, None, None, None, None, None, None], ...] | Any: ...
|
||||
def description(self) -> tuple[tuple[str, None, None, None, None, None, None], ...] | MaybeNone: ...
|
||||
@property
|
||||
def lastrowid(self) -> int | None: ...
|
||||
row_factory: Callable[[Cursor, Row], object] | None
|
||||
|
||||
Reference in New Issue
Block a user