stdlib: Add missing re-exports for UuidCreate, FCICreate, OpenDatabase & CreateRecord

This commit is contained in:
Martin Fischer
2022-02-28 06:45:41 +01:00
committed by Jelle Zijlstra
parent 77829c5c99
commit aa383624cf
3 changed files with 10 additions and 7 deletions

View File

@@ -43,6 +43,6 @@ if sys.platform == "win32":
__new__: None # type: ignore[assignment]
__init__: None # type: ignore[assignment]
def UuidCreate() -> str: ...
def FCICreate(cabname: str, files: list[str]) -> None: ...
def OpenDatabase(name: str, flags: int) -> _Database: ...
def CreateRecord(count: int) -> _Record: ...
def FCICreate(__cabname: str, __files: list[str]) -> None: ...
def OpenDatabase(__path: str, __persist: int) -> _Database: ...
def CreateRecord(__count: int) -> _Record: ...

View File

@@ -4,7 +4,13 @@ from typing import Any, Container, Iterable, Sequence
from typing_extensions import Literal
if sys.platform == "win32":
from _msi import _Database
from _msi import (
CreateRecord as CreateRecord,
FCICreate as FCICreate,
OpenDatabase as OpenDatabase,
UuidCreate as UuidCreate,
_Database,
)
AMD64: bool
if sys.version_info < (3, 7):

View File

@@ -1,6 +1,3 @@
_msi.CreateRecord
_msi.FCICreate
_msi.OpenDatabase
sqlite3.Connection.enable_load_extension
sqlite3.Connection.load_extension
sqlite3.dbapi2.Connection.enable_load_extension