Skip to content

Commit f7e2270

Browse files
committed
ctypes.py_object optional type-parameter
1 parent 1c17cd4 commit f7e2270

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
@@ -27,16 +27,16 @@ from _ctypes import (
2727
from _typeshed import StrPath
2828
from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure
2929
from types import GenericAlias
30-
from typing import Any, ClassVar, Generic, TypeVar, type_check_only
31-
from typing_extensions import Self, TypeAlias, deprecated
30+
from typing import Any, ClassVar, Generic, type_check_only
31+
from typing_extensions import Self, TypeAlias, TypeVar, deprecated
3232

3333
if sys.platform == "win32":
3434
from _ctypes import FormatError as FormatError, get_last_error as get_last_error, set_last_error as set_last_error
3535

3636
if sys.version_info >= (3, 11):
3737
from ctypes._endian import BigEndianUnion as BigEndianUnion, LittleEndianUnion as LittleEndianUnion
3838

39-
_T = TypeVar("_T")
39+
_T = TypeVar("_T", default=Any)
4040
_DLLT = TypeVar("_DLLT", bound=CDLL)
4141
_CT = TypeVar("_CT", bound=_CData)
4242

0 commit comments

Comments
 (0)