Skip to content

Commit

Permalink
./s/lint results
Browse files Browse the repository at this point in the history
  • Loading branch information
noelleleigh committed Oct 31, 2023
1 parent 68a0871 commit 686c257
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions django-stubs/db/models/functions/comparison.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ class Cast(Func):
) -> None: ...

class Coalesce(Func): ...

class Collate(Func):
def __init__(self, expression: Any, collation: str) -> None: ...

class Greatest(Func): ...

class JSONObject(Func):
def __init__(self, **fields: Any) -> None: ...

Expand Down
4 changes: 3 additions & 1 deletion django-stubs/db/models/manager.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class BaseManager(QuerySet[_T]):
def __init__(self) -> None: ...
def deconstruct(
self,
) -> tuple[bool, str | None, str | None, tuple[Any, ...] | None, dict[str, Any] | None]: ...
) -> tuple[
bool, str | None, str | None, tuple[Any, ...] | None, dict[str, Any] | None
]: ...
def check(self, **kwargs: Any) -> list[Any]: ...
@classmethod
def from_queryset(
Expand Down
5 changes: 2 additions & 3 deletions django-stubs/http/request.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Iterable, Mapping
from io import BytesIO
from re import Pattern
from typing import Any, BinaryIO, TypeVar, overload
from typing_extensions import Self
Expand Down Expand Up @@ -92,8 +91,8 @@ class HttpRequest:
def body(self) -> bytes: ...
def _load_post_and_files(self) -> None: ...
def close(self) -> None: ...
def read(self, *args, **kwargs) -> bytes: ...
def readline(self, *args, **kwargs) -> bytes: ...
def read(self, *args: Any, **kwargs: Any) -> bytes: ...
def readline(self, *args: Any, **kwargs: Any) -> bytes: ...
def __iter__(self) -> Iterable[bytes]: ...
def readlines(self) -> list[bytes]: ...

Expand Down
2 changes: 1 addition & 1 deletion django-stubs/http/response.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ from collections.abc import AsyncIterable, Iterable
from io import BytesIO
from json import JSONEncoder
from typing import Any, overload
from typing_extensions import Never

from django.core.handlers.wsgi import WSGIRequest
from django.http.cookie import SimpleCookie
from django.template import Context, Template
from django.test.client import Client
from django.urls import ResolverMatch
from django.utils.datastructures import CaseInsensitiveMapping
from typing_extensions import Never

class ResponseHeaders(CaseInsensitiveMapping[str]):
def pop(self, key: str, default: str | None = ...) -> str: ...
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/test/testcases.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ from django.core.servers.basehttp import ThreadedWSGIServer, WSGIRequestHandler
from django.db import connections as connections # noqa: F401
from django.db.backends.sqlite3.base import DatabaseWrapper
from django.db.models import Model
from django.db.models.query import _BaseQuerySet, ValuesQuerySet
from django.db.models.query import ValuesQuerySet, _BaseQuerySet
from django.forms.fields import EmailField
from django.http.response import HttpResponse, HttpResponseBase
from django.template.base import Template
Expand Down

0 comments on commit 686c257

Please sign in to comment.