Skip to content

Commit

Permalink
Add complex arithmetic types to ctypes (#12480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity authored Aug 29, 2024
1 parent 63db21e commit 1a59cc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/ctypes/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,8 @@ if sys.version_info >= (3, 12):
c_time_t: type[c_int32 | c_int64] # alias for one or the other at runtime

class py_object(_CanCastTo, _SimpleCData[_T]): ...

if sys.version_info >= (3, 14):
class c_float_complex(_SimpleCData[complex]): ...
class c_double_complex(_SimpleCData[complex]): ...
class c_longdouble_complex(_SimpleCData[complex]): ...

0 comments on commit 1a59cc2

Please sign in to comment.