mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
initial commit
This commit is contained in:
36
django/core/files/base.pyi
Normal file
36
django/core/files/base.pyi
Normal file
@@ -0,0 +1,36 @@
|
||||
from typing import (
|
||||
Any,
|
||||
Iterator,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def endswith_cr(line: bytes) -> bool: ...
|
||||
|
||||
|
||||
def endswith_lf(line: Union[str, bytes]) -> bool: ...
|
||||
|
||||
|
||||
def equals_lf(line: bytes) -> bool: ...
|
||||
|
||||
|
||||
class ContentFile:
|
||||
def __bool__(self) -> bool: ...
|
||||
def __init__(self, content: Union[str, bytes], name: Optional[str] = ...) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
|
||||
class File:
|
||||
def __bool__(self) -> bool: ...
|
||||
def __enter__(self) -> File: ...
|
||||
def __exit__(self, exc_type: None, exc_value: None, tb: None) -> None: ...
|
||||
def __init__(self, file: Any, name: Optional[str] = ...) -> None: ...
|
||||
def __iter__(self) -> Iterator[Union[str, bytes]]: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __str__(self) -> str: ...
|
||||
def chunks(self, chunk_size: None = ...) -> Iterator[Union[str, bytes]]: ...
|
||||
def close(self) -> None: ...
|
||||
@cached_property
|
||||
def size(self) -> int: ...
|
||||
Reference in New Issue
Block a user