mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
more test folders
This commit is contained in:
@@ -125,7 +125,7 @@ class ManyToManyField(RelatedField, Generic[_T]):
|
||||
to: Union[Type[_T], str],
|
||||
related_name: Optional[str] = ...,
|
||||
related_query_name: Optional[str] = ...,
|
||||
limit_choices_to: Optional[Callable] = ...,
|
||||
limit_choices_to: Optional[Dict[str, Any]] = ...,
|
||||
symmetrical: Optional[bool] = ...,
|
||||
through: Optional[Union[str, Type[Model]]] = ...,
|
||||
through_fields: Optional[Tuple[str, str]] = ...,
|
||||
|
||||
@@ -27,15 +27,15 @@ class HttpResponseBase(Iterable[AnyStr]):
|
||||
charset: Optional[str] = ...,
|
||||
) -> None: ...
|
||||
def serialize_headers(self) -> bytes: ...
|
||||
def __setitem__(self, header: str, value: Union[str, bytes]) -> None: ...
|
||||
def __delitem__(self, header: str) -> None: ...
|
||||
def __getitem__(self, header: str) -> str: ...
|
||||
def __setitem__(self, header: Union[str, bytes], value: Union[str, bytes]) -> None: ...
|
||||
def __delitem__(self, header: Union[str, bytes]) -> None: ...
|
||||
def __getitem__(self, header: Union[str, bytes]) -> str: ...
|
||||
def has_header(self, header: str) -> bool: ...
|
||||
def items(self) -> Iterable[Tuple[str, str]]: ...
|
||||
@overload
|
||||
def get(self, header: str, alternate: str) -> str: ...
|
||||
def get(self, header: Union[str, bytes], alternate: str) -> str: ...
|
||||
@overload
|
||||
def get(self, header: str) -> Optional[str]: ...
|
||||
def get(self, header: Union[str, bytes]) -> Optional[str]: ...
|
||||
def set_cookie(
|
||||
self,
|
||||
key: str,
|
||||
@@ -80,7 +80,7 @@ class HttpResponse(HttpResponseBase):
|
||||
def __init__(self, content: object = ..., *args: Any, **kwargs: Any) -> None: ...
|
||||
def serialize(self) -> bytes: ...
|
||||
@property
|
||||
def content(self) -> bytes: ...
|
||||
def content(self) -> Any: ...
|
||||
@content.setter
|
||||
def content(self, value: Any) -> None: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user