diff --git a/django-stubs/contrib/admin/sites.pyi b/django-stubs/contrib/admin/sites.pyi index e2d8057..1ed42c6 100644 --- a/django-stubs/contrib/admin/sites.pyi +++ b/django-stubs/contrib/admin/sites.pyi @@ -47,9 +47,9 @@ class AdminSite: def empty_value_display(self, empty_value_display: Any) -> None: ... def has_permission(self, request: WSGIRequest) -> bool: ... def admin_view(self, view: Callable, cacheable: bool = ...) -> Callable: ... - def get_urls(self) -> List[Union[URLPattern, URLResolver]]: ... + def get_urls(self) -> List[URLResolver]: ... @property - def urls(self) -> Tuple[List[Union[URLPattern, URLResolver]], str, str]: ... + def urls(self) -> Tuple[List[URLResolver], str, str]: ... def each_context(self, request: Any): ... def password_change(self, request: WSGIRequest, extra_context: Dict[str, str] = ...) -> TemplateResponse: ... def password_change_done(self, request: WSGIRequest, extra_context: None = ...) -> TemplateResponse: ... diff --git a/django-stubs/test/__init__.pyi b/django-stubs/test/__init__.pyi index a7ef21f..dba7773 100644 --- a/django-stubs/test/__init__.pyi +++ b/django-stubs/test/__init__.pyi @@ -7,4 +7,4 @@ from .testcases import ( from .utils import override_settings as override_settings, modify_settings as modify_settings -from .client import Client as Client +from .client import Client as Client, RequestFactory as RequestFactory