Files
django-stubs/django-stubs-generated/core/files/locks.pyi
2018-11-10 17:49:18 +03:00

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: ...