mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Added complete Xlib stubs (#9279)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
34
stubs/python-xlib/@tests/stubtest_allowlist.txt
Normal file
34
stubs/python-xlib/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
# Type helpers
|
||||
Xlib._typing
|
||||
|
||||
# __all__ is a map at runtime
|
||||
# https://github.com/python-xlib/python-xlib/pull/238
|
||||
Xlib.ext(\.__all__)?
|
||||
|
||||
# These will unconditionally fail at runtime
|
||||
# See: https://github.com/python-xlib/python-xlib/issues/253
|
||||
Xlib.protocol.rq.DictWrapper.__gt__
|
||||
Xlib.protocol.rq.DictWrapper.__lt__
|
||||
Xlib.protocol.rq.Event.__gt__
|
||||
Xlib.protocol.rq.Event.__lt__
|
||||
|
||||
# Default values
|
||||
Xlib.protocol.display.Display.send_and_recv
|
||||
# Can be None or str once instanciated
|
||||
Xlib.protocol.rq.*.structcode
|
||||
# Should only ever be str once instanciated
|
||||
Xlib.protocol.rq.*.name
|
||||
|
||||
# Structs generate their attributes (@type_check_only)
|
||||
Xlib.protocol.rq.Struct.__getattr__
|
||||
|
||||
# Iteration variable bleed into the global scope
|
||||
Xlib.protocol.rq.c
|
||||
# Re-export from tkinter
|
||||
Xlib.ext.randr.W
|
||||
# Re-exports from six
|
||||
Xlib.ext.xinput.integer_types
|
||||
Xlib.protocol.display.PY3
|
||||
Xlib.protocol.display.byte2int
|
||||
Xlib.protocol.rq.PY3
|
||||
Xlib.protocol.rq.byte2int
|
||||
3
stubs/python-xlib/@tests/stubtest_allowlist_win32.txt
Normal file
3
stubs/python-xlib/@tests/stubtest_allowlist_win32.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# failed to import, ModuleNotFoundError: No module named 'fcntl'
|
||||
# https://github.com/python-xlib/python-xlib/pull/217
|
||||
Xlib.support.unix_connect
|
||||
Reference in New Issue
Block a user