Skip to content

Commit 2e7802f

Browse files
committed
Keep ctypes ARRAY time-travel deprecation
1 parent cf3a5e8 commit 2e7802f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

stdlib/ctypes/__init__.pyi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,8 @@ if sys.version_info < (3, 15):
170170
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
171171
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...
172172

173-
if sys.version_info >= (3, 13):
174-
@deprecated("Soft deprecated since Python 3.13. Use multiplication instead.")
175-
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ...
176-
177-
else:
178-
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ...
173+
@deprecated("Soft deprecated since Python 3.13. Use multiplication instead.")
174+
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ...
179175

180176
if sys.platform == "win32":
181177
def DllCanUnloadNow() -> int: ...

0 commit comments

Comments
 (0)