We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ctypes.wintypes.BYTE
1 parent f45a2c1 commit aea1c91Copy full SHA for aea1c91
stdlib/ctypes/wintypes.pyi
@@ -1,3 +1,4 @@
1
+import sys
2
from _ctypes import _CArgObject, _CField
3
from ctypes import (
4
Array,
@@ -13,6 +14,7 @@ from ctypes import (
13
14
c_long,
15
c_longlong,
16
c_short,
17
+ c_ubyte,
18
c_uint,
19
c_ulong,
20
c_ulonglong,
@@ -24,7 +26,10 @@ from ctypes import (
24
26
from typing import Any, TypeVar
25
27
from typing_extensions import Self, TypeAlias
28
-BYTE = c_byte
29
+if sys.version_info >= (3, 12):
30
+ BYTE = c_ubyte
31
+else:
32
+ BYTE = c_byte
33
WORD = c_ushort
34
DWORD = c_ulong
35
CHAR = c_char
0 commit comments