Stephen Morton
17408ee538
fix the __init__ of several C-classes ( #13211 )
2024-12-23 10:55:51 -08:00
Stephen Morton
7a0f6837e9
add missing ctypes things ( #13147 )
2024-11-28 12:09:47 -08:00
Stephen Morton
05b969f975
add missing _ctypes functions ( #13067 )
2024-11-22 16:07:12 +01:00
Stephen Morton
b2c964fdea
Make inheritance and metaclass of ctypes better match reality ( #12982 )
2024-11-18 12:32:20 +01:00
Jun Komoda
1939ed1dc1
ctypes.POINTER(None) returns ctypes.c_void_p (#12754 )
2024-10-10 12:29:37 +02:00
sobolevn
519166ba23
Update pyright to 1.1.375 ( #12503 )
2024-08-09 19:19:19 +02:00
Max Muoto
fa0c14fa33
Enforce Positional Arguments for _CData.from_param ( #12373 )
2024-07-20 12:21:36 -07:00
Max Muoto
1b9e90baab
Use positional-only parameters for ctypes functions ( #12341 )
2024-07-13 22:16:42 -07:00
Shantanu
d9cf43c4c3
Mark pos-only __class_getitem__ args ( #11970 )
2024-05-18 23:27:51 +02:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Kanishk Pachauri
1e7e174b4f
stdlib: fix ctypes errcheck type ( #11467 )
2024-02-26 14:47:46 +01:00
Stephen Morton
9877ed8092
Various ctypes improvements ( #11186 )
...
Mostly more attention paid to which classes are actually the same class
2024-01-30 22:18:00 -08:00
Avasam
c8a81997ab
Bump pyright to 1.1.339 ( #11084 )
2023-12-06 22:40:06 +00:00
Nikita Sobolev
8acf1944f3
Remove allowlist entries for _ctypes on win ( #10855 )
2023-10-07 21:43:33 +02:00
Sebastian Rittau
7cc2282959
[ctypes] Add note about atypical classmethod behavior ( #10795 )
2023-09-28 22:28:10 -07:00
Jun Komoda
4009efa349
_CField as a generic descriptor protocol (#10595 )
2023-09-01 16:23:33 +02:00
Nikita Sobolev
2c1db00761
Consistently use Generic as the last base class ( #10610 )
2023-08-28 10:16:54 +02:00
Nikita Sobolev
0aa5dd57e5
Update ctypes stubs for Python 3.12 ( #10290 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-09 19:55:03 +01:00
Jelle Zijlstra
c0a0c34020
Use PEP 688 ( #10225 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-27 19:55:30 -07:00
Jun Komoda
9457de310a
update constructor args of the CFuncPtr to expand acceptable types ( #10155 )
...
* allow the second element of `_PF` to be `None`
* allow `__paramflags` to be `None`
* allow `__iid` to be `None` or `_CData`
* remove unused symbols
2023-05-07 07:32:58 -07:00
Jun Komoda
1d69fb3675
fix _ctypes.CFuncPtr constructor args ( #10154 )
...
* add a conditional branch for Windows only
* fix argname spelling
`vtlb_index` -> `vtbl_index`
* add an overload
for the case where no arguments are passed to the constructor
* mark all of the arguments as positional-only
2023-05-06 20:04:16 -07:00
Jun Komoda
a6ecf564b5
move and rename from ctypes._FuncPointer to _ctypes.CFuncPtr ( #10140 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-06 10:17:34 -07:00
Jun Komoda
05c0a1d8b2
move byref-related definitions from ctypes/__init__.pyi to _ctypes.pyi ( #10137 )
2023-05-03 16:50:47 +01:00
Jun Komoda
01b09d4371
Move some pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi ( #10133 )
2023-05-03 10:04:13 +01:00
Jun Komoda
ce531f897f
move some non-pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi ( #10130 )
...
- `ArgumentError`
- `addressof`
- `alignment`
- `get_errno`
- `resize`
- `set_errno`
- `sizeof`
2023-05-02 16:54:42 +01:00
Jun Komoda
bbeec7cbbf
Move some Windows-specific things from ctypes/__init__.pyi to _ctypes.pyi ( #10128 )
...
- `FormatError`
- `get_last_error`
- `set_last_error`
2023-05-02 11:21:55 +01:00
Jun Komoda
295a5c3e7a
Move Structure and Union from ctypes/__init__.pyi to _ctypes.pyi ( #10125 )
2023-05-01 13:01:41 +01:00
Jun Komoda
ae0c9f9dad
Move _SimpleCData and Array from ctypes/__init__.pyi to _ctypes.pyi ( #10118 )
2023-04-30 21:22:46 +01:00
junkmd
1c6eb33c23
add and migrate constants from ctypes/__init__.pyi to _ctypes.pyi ( #8643 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-08-29 15:33:47 +01:00
junkmd
179228370a
Add win32-specific constants to _ctypes ( #8614 )
2022-08-25 16:22:06 +01:00
Nikita Sobolev
fed419b8f1
Add CTYPES_MAX_ARGCOUNT to _ctypes ( #8601 )
2022-08-23 14:52:16 -07:00
junkmd
2066b9533c
_ctypes: add stubs ( #8582 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com >
2022-08-23 12:22:12 -07:00