mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
11 lines
278 B
Python
11 lines
278 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]: ...
|