mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
15
django-stubs-generated/contrib/redirects/middleware.pyi
Normal file
15
django-stubs-generated/contrib/redirects/middleware.pyi
Normal file
@@ -0,0 +1,15 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import HttpResponse
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
|
||||
class RedirectFallbackMiddleware(MiddlewareMixin):
|
||||
get_response: Callable
|
||||
response_gone_class: Any = ...
|
||||
response_redirect_class: Any = ...
|
||||
def __init__(self, get_response: Optional[Callable] = ...) -> None: ...
|
||||
def process_response(
|
||||
self, request: WSGIRequest, response: HttpResponse
|
||||
) -> HttpResponse: ...
|
||||
17
django-stubs-generated/contrib/redirects/models.pyi
Normal file
17
django-stubs-generated/contrib/redirects/models.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Redirect(models.Model):
|
||||
id: None
|
||||
site_id: int
|
||||
site: Any = ...
|
||||
old_path: str = ...
|
||||
new_path: str = ...
|
||||
class Meta:
|
||||
verbose_name: Any = ...
|
||||
verbose_name_plural: Any = ...
|
||||
db_table: str = ...
|
||||
unique_together: Any = ...
|
||||
ordering: Any = ...
|
||||
Reference in New Issue
Block a user