mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
Fix errors when type checking stdlib with Python 3.14 (#13977)
This commit is contained in:
@@ -60,12 +60,14 @@ from sqlite3.dbapi2 import (
|
||||
sqlite_version as sqlite_version,
|
||||
sqlite_version_info as sqlite_version_info,
|
||||
threadsafety as threadsafety,
|
||||
version_info as version_info,
|
||||
)
|
||||
from types import TracebackType
|
||||
from typing import Any, Literal, Protocol, SupportsIndex, TypeVar, final, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
if sys.version_info < (3, 14):
|
||||
from sqlite3.dbapi2 import version_info as version_info
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
from sqlite3.dbapi2 import (
|
||||
LEGACY_TRANSACTION_CONTROL as LEGACY_TRANSACTION_CONTROL,
|
||||
|
||||
Reference in New Issue
Block a user