mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
18 lines
478 B
Python
18 lines
478 B
Python
from ctypes import Structure, Union, c_int64, c_ulong, c_void_p
|
|
from io import BufferedRandom, TextIOWrapper
|
|
from typing import Any, Optional, Union
|
|
|
|
LOCK_SH: int
|
|
LOCK_NB: int
|
|
LOCK_EX: int
|
|
ULONG_PTR = c_int64
|
|
ULONG_PTR = c_ulong
|
|
PVOID = c_void_p
|
|
|
|
class _OFFSET(Structure): ...
|
|
class _OFFSET_UNION(Union): ...
|
|
class OVERLAPPED(Structure): ...
|
|
|
|
def lock(f: Union[BufferedRandom, TextIOWrapper, int], flags: int) -> bool: ...
|
|
def unlock(f: Union[BufferedRandom, int]) -> bool: ...
|