Skip to content

Commit ca3ee34

Browse files
committed
fix with sys.version_info
1 parent 0604134 commit ca3ee34

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

stdlib/_ctypes.pyi

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,17 @@ _SetT = TypeVar("_SetT")
197197

198198
@final
199199
class _CField(Generic[_CT, _GetT, _SetT]):
200-
name: str
201-
type: type[_CT]
202200
offset: int
203-
byte_offset: int
204-
byte_size: int
205201
size: int
206-
is_bitfield: bool
207-
bit_offset: int
208-
bit_size: int
209-
is_anonymous: bool
202+
if sys.version_info >= (3, 14):
203+
name: str
204+
type: type[_CT]
205+
byte_offset: int
206+
byte_size: int
207+
is_bitfield: bool
208+
bit_offset: int
209+
bit_size: int
210+
is_anonymous: bool
210211
if sys.version_info >= (3, 10):
211212
@overload
212213
def __get__(self, instance: None, owner: type[Any] | None = None, /) -> Self: ...

0 commit comments

Comments
 (0)