mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-15 21:12:58 +08:00
Fix errors when type checking stdlib with Python 3.14 (#13977)
This commit is contained in:
1 parent
168af67fb8
commit
2d46095e3f
4 files changed
+27
-18
No files matched your search
@@ -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