Skip to content

Commit be1a567

Browse files
stdlib: Add missing re-exports for UuidCreate, FCICreate, OpenDatabase & CreateRecord
1 parent ef0c696 commit be1a567

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

stdlib/_msi.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ if sys.platform == "win32":
4343
__new__: None # type: ignore[assignment]
4444
__init__: None # type: ignore[assignment]
4545
def UuidCreate() -> str: ...
46-
def FCICreate(cabname: str, files: list[str]) -> None: ...
47-
def OpenDatabase(name: str, flags: int) -> _Database: ...
48-
def CreateRecord(count: int) -> _Record: ...
46+
def FCICreate(__cabname: str, __files: list[str]) -> None: ...
47+
def OpenDatabase(__path: str, __persist: int) -> _Database: ...
48+
def CreateRecord(__count: int) -> _Record: ...

stdlib/msilib/__init__.pyi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ from typing import Any, Container, Iterable, Sequence
44
from typing_extensions import Literal
55

66
if sys.platform == "win32":
7-
from _msi import _Database
7+
from _msi import (
8+
CreateRecord as CreateRecord,
9+
FCICreate as FCICreate,
10+
OpenDatabase as OpenDatabase,
11+
UuidCreate as UuidCreate,
12+
_Database,
13+
)
814

915
AMD64: bool
1016
if sys.version_info < (3, 7):

tests/stubtest_allowlists/win32-py310.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
_msi.CreateRecord
2-
_msi.FCICreate
3-
_msi.OpenDatabase
41
sqlite3.Connection.enable_load_extension
52
sqlite3.Connection.load_extension
63
sqlite3.dbapi2.Connection.enable_load_extension

0 commit comments

Comments
 (0)