8000 Use `TypeAlias` for types in `sqlite3.dbapi2` by sobolevn · Pull Request #9158 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Use TypeAlias for types in sqlite3.dbapi2 #9158

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

Closed
wants to merge 2 commits into from
Closed
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 stdlib/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ _Converter: TypeAlias = Callable[[bytes], Any]
paramstyle: str
threadsafety: int
apilevel: str
Date = date
Time = time
Timestamp = datetime
Date: TypeAlias = date
Time: TypeAlias = time
Timestamp: TypeAlias = datetime

def DateFromTicks(ticks: float) -> Date: ...
def TimeFromTicks(ticks: float) -> Time: ...
def TimestampFromTicks(ticks: float) -> Timestamp: ...

version_info: tuple[int, int, int]
sqlite_version_info: tuple[int, int, int]
Binary = memoryview
Binary: TypeAlias = memoryview

# The remaining definitions are imported from _sqlite3.

Expand Down
0