1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
from collections.abc import Iterator
from typing import IO, Any, AnyStr, Generic
from django.utils._os import _PathCompatible
def validate_file_name(name: _PathCompatible, allow_relative_path: bool = False) -> _PathCompatible: ...
class FileProxyMixin(Generic[AnyStr]):
file: IO[AnyStr] | None
encoding: Any
fileno: Any
flush: Any
isatty: Any
newlines: Any
read: Any
readinto: Any
readline: Any
readlines: Any
seek: Any
tell: Any
truncate: Any
write: Any
writelines: Any
@property
def closed(self) -> bool: ...
def readable(self) -> bool: ...
def writable(self) -> bool: ...
def seekable(self) -> bool: ...
def __iter__(self) -> Iterator[AnyStr]: ...
|