Skip to content

Commit d5c4051

Browse files
committed
ctypes.py_object optional type-parameter
1 parent bf8d2a9 commit d5c4051

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/ctypes/__init__.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ from _ctypes import (
2626
)
2727
from _typeshed import StrPath
2828
from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure
29-
from typing import Any, ClassVar, Generic, TypeVar, type_check_only
30-
from typing_extensions import Self, TypeAlias, deprecated
29+
from typing import Any, ClassVar, Generic, type_check_only
30+
from typing_extensions import Self, TypeAlias, TypeVar, deprecated
3131

3232
if sys.platform == "win32":
3333
from _ctypes import FormatError as FormatError, get_last_error as get_last_error, set_last_error as set_last_error
@@ -38,7 +38,7 @@ if sys.version_info >= (3, 11):
3838
if sys.version_info >= (3, 9):
3939
from types import GenericAlias
4040

41-
_T = TypeVar("_T")
41+
_T = TypeVar("_T", default=Any)
4242
_DLLT = TypeVar("_DLLT", bound=CDLL)
4343
_CT = TypeVar("_CT", bound=_CData)
4444

0 commit comments

Comments
 (0)