mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-25 23:27:38 +08:00
initial commit
This commit is contained in:
commit
a9f215bf64
311 files changed
+13433
No files matched your search
@@ -0,0 +1,19 @@
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import HttpResponse
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
Optional,
|
||||
Tuple,
|
||||
)
|
||||
|
||||
|
||||
class XViewMiddleware:
|
||||
def process_view(
|
||||
self,
|
||||
request: WSGIRequest,
|
||||
view_func: Callable,
|
||||
view_args: Tuple,
|
||||
view_kwargs: Dict[Any, Any]
|
||||
) -> Optional[HttpResponse]: ...
|
||||
@@ -0,0 +1,10 @@
|
||||
from typing import Callable
|
||||
|
||||
|
||||
def get_view_name(view_func: Callable) -> str: ...
|
||||
|
||||
|
||||
def replace_named_groups(pattern: str) -> str: ...
|
||||
|
||||
|
||||
def replace_unnamed_groups(pattern: str) -> str: ...
|
||||
@@ -0,0 +1,4 @@
|
||||
from django.db.models.fields import Field
|
||||
|
||||
|
||||
def get_readable_field_data_type(field: Field) -> str: ...
|
||||
Reference in new issue
Block a user