Marco Ricci commited on 2025-12-28 18:47:21
Zeige 1 geänderte Dateien mit 8 Einfügungen und 0 Löschungen.
The fallback implementation for systems other than The Annoying OS was incomplete.
| ... | ... |
@@ -140,6 +140,7 @@ except ( |
| 140 | 140 |
cbDataIn: DWORD, # noqa: N803 |
| 141 | 141 |
dwFlags: DWORD, # noqa: N803 |
| 142 | 142 |
) -> BOOL: # pragma: no cover [external] |
| 143 |
+ del pDataIn, cbDataIn, dwFlags |
|
| 143 | 144 |
raise NotImplementedError |
| 144 | 145 |
|
| 145 | 146 |
else: # pragma: unless the-annoying-os no cover |
| ... | ... |
@@ -229,6 +230,13 @@ except ( |
| 229 | 230 |
) |
| 230 | 231 |
raise OSError(errno.ENOTSUP, os.strerror(errno.ENOTSUP)) |
| 231 | 232 |
|
| 233 |
+ def CloseHandle( # noqa: N802 |
|
| 234 |
+ hHandle: HANDLE, # noqa: N803 |
|
| 235 |
+ ) -> BOOL: # pragma: no cover [external] |
|
| 236 |
+ del hHandle |
|
| 237 |
+ raise OSError(errno.ENOTSUP, os.strerror(errno.ENOTSUP)) |
|
| 238 |
+ |
|
| 239 |
+ |
|
| 232 | 240 |
else: # pragma: unless the-annoying-os no cover |
| 233 | 241 |
CreateFile.argtypes = [ # type: ignore[attr-defined] |
| 234 | 242 |
LPCWSTR, |
| 235 | 243 |