8000 Updated some pywin32 unknown types by Avasam · Pull Request #9089 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Updated some pywin32 unknown types #9089

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 1 commit into from
Nov 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stubs/pywin32/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pythoncom.MakeIID
pythoncom.MakeTime
win32.lib.dbi
win32.lib.win32pdhquery.Query.addperfcounter
# Deprecated and makes a buffer of random junk. Use something like `b"\x00" * bufferSize` instead
win32.win32gui.PyMakeBuffer
# Also a script
win32.lib.regcheck
Expand Down
6 changes: 4 additions & 2 deletions stubs/pywin32/METADATA.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version = "304.*"
[tool.stubtest]
# The library only works on Windows; we currently only run stubtest on Ubuntu for third-party stubs in CI.
# See #8660
# `ignore_missing_stub = false` crashes stubtest. This should be fixed in next mypy update
# https://github.com/python/mypy/issues/13822
skip = true
# This crashes stubtest. It should be fixed in next mypy update
# (keeping it since we currently skip the stub anyway)
# https://github.com/python/mypy/issues/13822
ignore_missing_stub = false
174 changes: 87 additions & 87 deletions stubs/pywin32/_win32typing.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Not available at runtime. Contains type definitions that are otherwise not exposed
# Not available at runtime. Contains type definitions that are otherwise not exposed and not part of a specific module.
from _typeshed import Incomplete
from typing_extensions import final

Expand Down Expand Up @@ -646,182 +646,182 @@ class PyDCB:

class PyDEVMODE:
@property
def SpecVersion(self): ...
def SpecVersion(self) -> int: ...
@property
def DriverVersion(self): ...
def DriverVersion(self) -> int: ...
@property
def Size(self): ...
def Size(self) -> int: ...
@property
def DriverExtra(self): ...
def DriverExtra(self) -> int: ...
@property
def Fields(self): ...
def Fields(self) -> int: ...
@property
def Orientation(self): ...
def Orientation(self) -> int: ...
@property
def PaperSize(self): ...
def PaperSize(self) -> int: ...
@property
def PaperLength(self): ...
def PaperLength(self) -> int: ...
10000 @property
def PaperWidth(self): ...
def PaperWidth(self) -> int: ...
@property
def Position_x(self): ...
def Position_x(self) -> int: ...
@property
def Position_y(self): ...
def Position_y(self) -> int: ...
@property
def DisplayOrientation(self): ...
def DisplayOrientation(self) -> int: ...
@property
def DisplayFixedOutput(self): ...
def DisplayFixedOutput(self) -> int: ...
@property
def Scale(self): ...
def Scale(self) -> int: ...
@property
def Copies(self): ...
def Copies(self) -> int: ...
@property
def DefaultSource(self): ...
def DefaultSource(self) -> int: ...
@property
def PrintQuality(self): ...
def PrintQuality(self) -> int: ...
@property
def Color(self): ...
def Color(self) -> int: ...
@property
def Duplex(self): ...
def Duplex(self) -> int: ...
@property
def YResolution(self): ...
def YResolution(self) -> int: ...
@property
def TTOption(self): ...
def TTOption(self) -> int: ...
@property
def Collate(self): ...
def Collate(self) -> int: ...
@property
def LogPixels(self): ...
def LogPixels(self) -> int: ...
@property
def BitsPerPel(self): ...
def BitsPerPel(self) -> int: ...
@property
def PelsWidth(self): ...
def PelsWidth(self) -> int: ...
@property
def PelsHeight(self): ...
def PelsHeight(self) -> int: ...
@property
def DisplayFlags(self): ...
def DisplayFlags(self) -> int: ...
@property
def DisplayFrequency(self): ...
def DisplayFrequency(self) -> int: ...
@property
def ICMMethod(self): ...
def ICMMethod(self) -> int: ...
@property
def ICMIntent(self): ...
def ICMIntent(self) -> int: ...
@property
def MediaType(self): ...
def MediaType(self) -> int: ...
@property
def DitherType(self): ...
def DitherType(self) -> int: ...
@property
def Reserved1(self): ...
def Reserved1(self) -> int: ...
@property
def Reserved2(self): ...
def Reserved2(self) -> int: ...
@property
def Nup(self): ...
def Nup(self) -> int: ...
@property
def PanningWidth(self): ...
def PanningWidth(self) -> int: ...
@property
def PanningHeight(self): ...
def PanningHeight(self) -> int: ...
@property
def DeviceName(self): ...
def DeviceName(self) -> str: ...
@property
def FormName(self): ...
def FormName(self) -> str: ...
@property
def DriverData(self): ...
def DriverData(self) -> Incomplete | None: ...
def Clear(self) -> None: ...

class PyDEVMODEW:
@property
def SpecVersion(self): ...
def SpecVersion(self) -> int: ...
@property
def DriverVersion(self): ...
def DriverVersion(self) -> int: ...
@property
def Size(self): ...
def Size(self) -> int: ...
@property
def DriverExtra(self): ...
def DriverExtra(self) -> int: ...
@property
def Fields(self): ...
def Fields(self) -> int: ...
@property
def Orientation(self): ...
def Orientation(self) -> int: ...
@property
def PaperSize(self): ...
def PaperSize(self) -> int: ...
@property
def PaperLength(self): ...
def PaperLength(self) -> int: ...
@property
def PaperWidth(self): ...
def PaperWidth(self) -> int: ...
@property
def Position_x(self): ...
def Position_x(self) -> int: ...
@property
def Position_y(self): ...
def Position_y(self) -> int: ...
@property
def DisplayOrientation(self): ...
def DisplayOrientation(self) -> int: ...
@property
def DisplayFixedOutput(self): ...
def DisplayFixedOutput(self) -> int: ...
@property
def Scale(self): ...
def Scale(self) -> int: ...
@property
def Copies(self): ...
def Copies(self) -> int: ...
@property
def DefaultSource(self): ...
def DefaultSource(self) -> int: ...
@property
def PrintQuality(self): ...
def PrintQuality(self) -> int: ...
@property
def Color(self): ...
def Color(self) -> int: ...
@property
def Duplex(self): ...
def Duplex(self) -> int: ...
@property
def YResolution(self): ...
def YResolution(self) -> int: ...
@property
def TTOption(self): ...
def TTOption(self) -> int: ...
@property
def Collate(self): ...
def Collate(self) -> int: ...
@property
def LogPixels(self): ...
def LogPixels(self) -> int: ...
@property
def BitsPerPel(self): ...
def BitsPerPel(self) -> int: ...
@property
def PelsWidth(self): ...
def PelsWidth(self) -> int: ...
@property
def PelsHeight(self): ...
def PelsHeight(self) -> int: ...
@property
def DisplayFlags(self): ...
def DisplayFlags(self) -> int: ...
@property
def DisplayFrequency(self): ...
def DisplayFrequency(self) -> int: ...
@property
def ICMMethod(self): ...
def ICMMethod(self) -> int: ...
@property
def ICMIntent(self): ...
def ICMIntent(self) -> int: ...
@property
def MediaType(self): ...
def MediaType(self) -> int: ...
@property
def DitherType(self): ...
def DitherType(self) -> int: ...
@property
def Reserved1(self): ...
def Reserved1(self) -> int: ...
@property
def Reserved2(self): ...
def Reserved2(self) -> int: ...
@property
def Nup(self): ...
def Nup(self) -> int: ...
@property
def PanningWidth(self): ...
def PanningWidth(self) -> int: ...
@property
def PanningHeight(self): ...
def PanningHeight(self) -> int 1E79 : ...
@property
def DeviceName(self) -> str: ...
@property
def FormName(self): ...
def FormName(self) -> str: ...
@property
def DriverData(self): ...
def DriverData(self) -> Incomplete | None: ...

class PyDISPLAY_DEVICE:
@property
def Size(self): ...
def Size(self) -> int: ...
@property
def DeviceName(self): ...
def DeviceName(self) -> str: ...
@property
def DeviceString(self): ...
def DeviceString(self) -> str: ...
@property
def StateFlags(self): ...
def StateFlags(self) -> int: ...
@property
def DeviceID(self): ...
def DeviceID(self) -> str: ...
@property
def DeviceKey(self): ...
def DeviceKey(self) -> str: ...
def Clear(self) -> None: ...

class PyDLGITEMTEMPLATE: ...
Expand Down Expand Up @@ -910,7 +910,7 @@ class PyGetSignerCertificate: ...

class PyHANDLE:
@property
def handle(self): ...
def handle(self) -> int: ...
def Close(self) -> None: ...
def close(self) -> None: ...
def Detach(self): ...
Expand Down
Loading
0