File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,21 +48,21 @@ class ArgumentError(Exception): ...
48
48
# defined within CDLL.__init__
49
49
# Runtime name is ctypes.CDLL.__init__.<locals>._FuncPtr
50
50
@type_check_only
51
- class _FuncPtr (_CFuncPtr ):
51
+ class _CDLLFuncPointer (_CFuncPtr ):
52
52
_flags_ : ClassVar [int ]
53
53
_restype_ : ClassVar [type [_CDataType ]]
54
54
55
- # Not a real class; _FuncPtr with a __name__ set on it.
55
+ # Not a real class; _CDLLFuncPointer with a __name__ set on it.
56
56
@type_check_only
57
- class _NamedFuncPointer (_FuncPtr ):
57
+ class _NamedFuncPointer (_CDLLFuncPointer ):
58
58
__name__ : str
59
59
60
60
class CDLL :
61
61
_func_flags_ : ClassVar [int ]
62
62
_func_restype_ : ClassVar [type [_CDataType ]]
63
63
_name : str
64
64
_handle : int
65
- _FuncPtr : type [_FuncPtr ]
65
+ _FuncPtr : type [_CDLLFuncPointer ]
66
66
def __init__ (
67
67
self ,
68
68
name : str | None ,
@@ -108,7 +108,7 @@ class _CFunctionType(_CFuncPtr):
108
108
_flags_ : ClassVar [int ]
109
109
110
110
# Alias for either function pointer type
111
- _FuncPointer : TypeAlias = _FuncPtr | _CFunctionType # noqa: Y047 # not used here
111
+ _FuncPointer : TypeAlias = _CDLLFuncPointer | _CFunctionType # noqa: Y047 # not used here
112
112
113
113
def CFUNCTYPE (
114
114
restype : type [_CData | _CDataType ] | None ,
You can’t perform that action at this time.
0 commit comments