Skip to content

Typeshed cherry-picks: gettext and sqlite3 fixes #12797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2022
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
2 changes: 1 addition & 1 deletion mypy/typeshed/stdlib/gettext.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class NullTranslations:
class GNUTranslations(NullTranslations):
LE_MAGIC: Final[int]
BE_MAGIC: Final[int]
CONTEXT: Final[str]
CONTEXT: str
VERSIONS: Sequence[int]

@overload # ignores incompatible overloads
Expand Down
3 changes: 2 additions & 1 deletion mypy/typeshed/stdlib/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,9 @@ class Cursor(Iterator[Any]):
arraysize: int
@property
def connection(self) -> Connection: ...
# May be None, but using | Any instead to avoid slightly annoying false positives.
@property
def description(self) -> tuple[tuple[str, None, None, None, None, None, None], ...] | None: ...
def description(self) -> tuple[tuple[str, None, None, None, None, None, None], ...] | Any: ...
@property
def lastrowid(self) -> int | None: ...
row_factory: Callable[[Cursor, Row[Any]], object] | None
Expand Down