Skip to content
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

Add pywin32 type stubs from microsoft/python-type-stubs and mhammond/pywin32 #8825

Merged
merged 3 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 pyrightconfig.stricter.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"stubs/python-dateutil",
"stubs/python-jose",
"stubs/pyvmomi",
"stubs/pywin32",
"stubs/PyYAML",
"stubs/redis",
"stubs/requests",
Expand Down
53 changes: 53 additions & 0 deletions stubs/pywin32/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Not available at runtime. Contains type definitions that are otherwise not exposed
_win32typing
win32comext.mapi.exchdapi
win32.winxptheme
win32.wincerapi

# FIXME: I messed up the stub here. redo
win32comext.axscript.axscript.*

# incomplete
pythoncom.*
pythonwin.pywin.*
win32.lib.pywintypes.*
win32.lib.ntsecuritycon.*
win32.lib.sspicon.*
win32.lib.win2kras.*
win32.lib.win32con.*
win32.lib.win32cryptcon.*
win32.lib.win32inetcon.*
win32.lib.win32netcon.*
win32.lib.winioctlcon.*
win32.win32pdh.*
win32.win32ras.*
win32.win32wnet.*
win32comext.adsi.*
win32comext.mapi.exchange.*
win32comext.shell.shell.*
win32comext.directsound.directsound.*

win32comext.axdebug.axdebug
win32comext.internet.internet
win32comext.adsi.adsicon
win32comext.axdebug.adb
win32comext.axdebug.codecontainer
win32comext.axdebug.contexts
win32comext.axdebug.debugger
win32comext.axdebug.documents
win32comext.axdebug.dump
win32comext.axdebug.expressions
win32comext.axdebug.gateways
win32comext.axdebug.stackframe
win32comext.axdebug.util
win32comext.axscript.asputil
win32comext.axscript.client.*
win32comext.axscript.server.*
win32comext.directsound.test.*
win32comext.ifilter.ifiltercon
win32comext.internet.inetcon
win32comext.mapi.emsabtags
win32comext.mapi.mapitags
win32comext.mapi.mapiutil
win32comext.propsys.pscon
win32comext.shell.shellcon
6 changes: 6 additions & 0 deletions stubs/pywin32/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
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
skip = true
Loading