@@ -700,7 +700,7 @@ def _refresh_afd(self, base_handle: Handle) -> None:
700
700
701
701
lpOverlapped = ffi .new ("LPOVERLAPPED" )
702
702
703
- poll_info = cast (_AFDPollInfo , ffi .new ("AFD_POLL_INFO *" ))
703
+ poll_info = cast (" _AFDPollInfo" , ffi .new ("AFD_POLL_INFO *" ))
704
704
poll_info .Timeout = 2 ** 63 - 1 # INT64_MAX
705
705
poll_info .NumberOfHandles = 1
706
706
poll_info .Exclusive = 0
@@ -713,9 +713,9 @@ def _refresh_afd(self, base_handle: Handle) -> None:
713
713
kernel32 .DeviceIoControl (
714
714
afd_group .handle ,
715
715
IoControlCodes .IOCTL_AFD_POLL ,
716
- cast (CType , poll_info ),
716
+ cast (" CType" , poll_info ),
717
717
ffi .sizeof ("AFD_POLL_INFO" ),
718
- cast (CType , poll_info ),
718
+ cast (" CType" , poll_info ),
719
719
ffi .sizeof ("AFD_POLL_INFO" ),
720
720
ffi .NULL ,
721
721
lpOverlapped ,
@@ -937,13 +937,13 @@ async def _perform_overlapped(
937
937
# operation will not be cancellable, depending on how Windows is
938
938
# feeling today. So we need to check for cancellation manually.
939
939
await _core .checkpoint_if_cancelled ()
940
- lpOverlapped = cast (_Overlapped , ffi .new ("LPOVERLAPPED" ))
940
+ lpOverlapped = cast (" _Overlapped" , ffi .new ("LPOVERLAPPED" ))
941
941
try :
942
942
submit_fn (lpOverlapped )
943
943
except OSError as exc :
944
944
if exc .winerror != ErrorCodes .ERROR_IO_PENDING :
945
945
raise
946
- await self .wait_overlapped (handle , cast (CData , lpOverlapped ))
946
+ await self .wait_overlapped (handle , cast (" CData" , lpOverlapped ))
947
947
return lpOverlapped
948
948
949
949
@_public
0 commit comments