@@ -5,7 +5,7 @@ from abc import abstractmethod
55from collections .abc import Callable , Iterable , Iterator , Mapping , Sequence
66from ctypes import CDLL , ArgumentError as ArgumentError , c_void_p
77from types import GenericAlias
8- from typing import Any , ClassVar , Final , Generic , TypeVar , final , overload , type_check_only
8+ from typing import Any , ClassVar , Final , Generic , Literal , TypeVar , final , overload , type_check_only
99from typing_extensions import Self , TypeAlias
1010
1111_T = TypeVar ("_T" )
@@ -266,6 +266,10 @@ class Structure(_CData, metaclass=_PyCStructType):
266266 if sys .version_info >= (3 , 13 ):
267267 _align_ : ClassVar [int ]
268268
269+ if sys .version_info >= (3 , 14 ):
270+ # _layout_ can be defined by the user, but is not always present.
271+ _layout_ : ClassVar [Literal ["ms" , "gcc-sysv" ]]
272+
269273 def __init__ (self , * args : Any , ** kw : Any ) -> None : ...
270274 def __getattr__ (self , name : str ) -> Any : ...
271275 def __setattr__ (self , name : str , value : Any ) -> None : ...
0 commit comments