8000 Add several missing stdlib functions by not-my-profile · Pull Request #7397 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Add several missing stdlib functions #7397

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

Merged
merged 10 commits into from
Mar 6, 2022
Merged
Prev Previous commit
Next Next commit
stdlib: Add missing re-exports for UuidCreate, FCICreate, OpenDatabas…
…e & CreateRecord
  • Loading branch information
not-my-profile committed Mar 2, 2022
commit be1a5675f6668a07fc082751f4ae2d6d9e8a833a
6 changes: 3 additions & 3 deletions stdlib/_msi.pyi
8000
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
8 changes: 7 additions & 1 deletion stdlib/msilib/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 0 additions & 3 deletions tests/stubtest_allowlists/win32-py310.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
0