diff --git a/stdlib/ctypes/__init__.pyi b/stdlib/ctypes/__init__.pyi index fe9c239176d2..a7e9c1ce068c 100644 --- a/stdlib/ctypes/__init__.pyi +++ b/stdlib/ctypes/__init__.pyi @@ -27,8 +27,8 @@ from _ctypes import ( from _typeshed import StrPath from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure from types import GenericAlias -from typing import Any, ClassVar, Generic, TypeVar, type_check_only -from typing_extensions import Self, TypeAlias, deprecated +from typing import Any, ClassVar, Generic, type_check_only +from typing_extensions import Self, TypeAlias, TypeVar, deprecated if sys.platform == "win32": from _ctypes import FormatError as FormatError, get_last_error as get_last_error, set_last_error as set_last_error @@ -36,7 +36,7 @@ if sys.platform == "win32": if sys.version_info >= (3, 11): from ctypes._endian import BigEndianUnion as BigEndianUnion, LittleEndianUnion as LittleEndianUnion -_T = TypeVar("_T") +_T = TypeVar("_T", default=Any) _DLLT = TypeVar("_DLLT", bound=CDLL) _CT = TypeVar("_CT", bound=_CData)