mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-23 20:31:32 +08:00
add linting stubs with flake8-pyi and check for unused imports (#186)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
from django.http.request import HttpRequest
|
||||
from django.utils.safestring import SafeText
|
||||
|
||||
@@ -2,7 +2,7 @@ from datetime import date as _date, datetime, time as _time
|
||||
from typing import Any, Callable, Dict, List, Optional, Union
|
||||
|
||||
from django.utils.safestring import SafeText
|
||||
from django.utils.html import escape as escape
|
||||
from django.utils.html import escape as escape # noqa: F401
|
||||
|
||||
register: Any
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
from . import engines as engines
|
||||
from . import engines as engines # noqa: F401
|
||||
|
||||
from django.http.request import HttpRequest
|
||||
from django.template.exceptions import TemplateDoesNotExist as TemplateDoesNotExist
|
||||
from django.template.exceptions import TemplateDoesNotExist as TemplateDoesNotExist # noqa: F401
|
||||
|
||||
def get_template(template_name: str, using: Optional[str] = ...) -> Any: ...
|
||||
def select_template(template_name_list: Union[List[str], str], using: Optional[str] = ...) -> Any: ...
|
||||
|
||||
@@ -7,7 +7,6 @@ from django.http.request import HttpRequest
|
||||
from django.template.base import Template
|
||||
from django.template.context import RequestContext
|
||||
from django.test.client import Client
|
||||
from django.utils.functional import SimpleLazyObject
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
||||
|
||||
Reference in New Issue
Block a user