Skip to content

Commit 05acb6c

Browse files
_msi: improve types (#9008)
1 parent 287fce4 commit 05acb6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/_msi.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ if sys.platform == "win32":
1212
# Don't exist at runtime
1313
__new__: None # type: ignore[assignment]
1414
__init__: None # type: ignore[assignment]
15-
# Actual typename Summary, not exposed by the implementation
16-
class _Summary:
17-
def GetProperty(self, propid: int) -> str | bytes | None: ...
15+
# Actual typename SummaryInformation, not exposed by the implementation
16+
class _SummaryInformation:
17+
def GetProperty(self, field: int) -> int | bytes | None: ...
1818
def GetPropertyCount(self) -> int: ...
19-
def SetProperty(self, propid: int, value: str | bytes) -> None: ...
19+
def SetProperty(self, field: int, value: int | str) -> None: ...
2020
def Persist(self) -> None: ...
2121
# Don't exist at runtime
2222
__new__: None # type: ignore[assignment]
@@ -25,7 +25,7 @@ if sys.platform == "win32":
2525
class _Database:
2626
def OpenView(self, sql: str) -> _View: ...
2727
def Commit(self) -> None: ...
28-
def GetSummaryInformation(self, updateCount: int) -> _Summary: ...
28+
def GetSummaryInformation(self, updateCount: int) -> _SummaryInformation: ...
2929
def Close(self) -> None: ...
3030
# Don't exist at runtime
3131
__new__: None # type: ignore[assignment]

0 commit comments

Comments
 (0)