We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a798a commit 53bd753Copy full SHA for 53bd753
1 file changed
Xlib/XK.py
@@ -24,6 +24,10 @@
24
# definition modules in the Xlib/keysymdef directory.
25
26
from Xlib.X import NoSymbol
27
+try:
28
+ from typing import TYPE_CHECKING
29
+except ImportError:
30
+ TYPE_CHECKING = False
31
32
def string_to_keysym(keysym):
33
# type: (str) -> int
@@ -66,7 +70,11 @@ def _load_keysyms_into_XK(mod):
66
70
67
71
# Always import miscellany and latin1 keysyms
68
72
load_keysym_group('miscellany')
73
+if TYPE_CHECKING:
74
+ from Xlib.keysymdef.miscellany import *
69
75
load_keysym_group('latin1')
76
77
+ from Xlib.keysymdef.latin1 import *
78
79
80
def keysym_to_string(keysym):
0 commit comments