Skip to content

Commit cf3a5e8

Browse files
committed
Keep ctypes time-travel deprecation
1 parent 60dee78 commit cf3a5e8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

stdlib/ctypes/__init__.pyi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,8 @@ c_buffer = create_string_buffer
167167
def create_unicode_buffer(init: int | str, size: int | None = None) -> Array[c_wchar]: ...
168168

169169
if sys.version_info < (3, 15):
170-
if sys.version_info >= (3, 13):
171-
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
172-
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
173-
else:
174-
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
170+
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
171+
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
175172

176173
if sys.version_info >= (3, 13):
177174
@deprecated("Soft deprecated since Python 3.13. Use multiplication instead.")

0 commit comments

Comments
 (0)