Allowlist-only fixes for stubtest on Windows (#9522)

This commit is contained in:
Avasam
2023-01-13 07:45:38 -05:00
committed by GitHub
parent b216053432
commit 1946907451
8 changed files with 13 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
PIL.FpxImagePlugin
PIL.ImageQt.ImageQt
PIL.ImageQt.QImage # Does exist at runtime usually, but stubtest can't see it
PIL.ImageQt.QPixmap # Does exist at runtime usually, but stubtest can't see it
PIL.MicImagePlugin
# Requires Pyside or PyQt to be installed.
# We don't install either in stubtest so it can't see it
PIL.ImageQt.QImage
PIL.ImageQt.QPixmap

View File

@@ -2,7 +2,6 @@
keyboard.KeyboardEvent.scan_code
keyboard._keyboard_event.KeyboardEvent.scan_code
# Defaults don't align with possible values
keyboard.mouse.on_button
keyboard.mouse.wait
# TODO: Should this be allowlisted?
keyboard.__main__

View File

@@ -0,0 +1,2 @@
# Defaults don't align with possible values
keyboard.mouse.on_button

View File

@@ -0,0 +1,2 @@
# Defaults don't align with possible values
keyboard.mouse.on_button

View File

@@ -65,6 +65,7 @@ win32com(ext)?.axdebug.documents
win32com(ext)?.axdebug.expressions
# failed to import, ModuleNotFoundError: No module named 'expressions'
win32com(ext)?.axdebug.stackframe
# Axdebug is not built on Python 3.11: https://github.com/mhammond/pywin32/blob/main/setup.py#L405
# failed to import, ImportError: cannot import name 'axdebug' from 'win32com.axdebug'
win32com.axdebug.gateways
win32comext.axdebug.gateways

View File

@@ -1,5 +1,2 @@
# No idea what this is, seems to be auto-generated
tree_sitter_languages.core.__test__
# Fails to import and is not supposed to be imported, but stubtest finds it somehow
tree_sitter_languages.languages

View File

@@ -0,0 +1,2 @@
# stubtest/stubgen sees languages.so as a module
tree_sitter_languages.languages

View File

@@ -0,0 +1,2 @@
# stubtest/stubgen sees languages.so as a module
tree_sitter_languages.languages