mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
8 lines
271 B
Python
8 lines
271 B
Python
from typing import Any, Optional, Union
|
|
|
|
from django.contrib.sites.models import Site
|
|
from django.contrib.sites.requests import RequestSite
|
|
from django.http.request import HttpRequest
|
|
|
|
def get_current_site(request: Optional[HttpRequest]) -> Union[Site, RequestSite]: ...
|