-
-
Notifications
You must be signed in to change notification settings - Fork 521
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
LOGIN_URL is declared as _StrOrPromise in django-stubs/conf/global_settings.pyi. But according to the docs at https://docs.djangoproject.com/en/5.2/ref/settings/#login-url it should be a str:
The URL or named URL pattern where requests are redirected for login
Even internally it's passed to django.shortcuts.resolve_url (see source code for user_passes_test). When I do it (resolve_url(settings.LOGIN_URL)), I get:
Argument 1 to "resolve_url" has incompatible type "str | _StrPromise"; expected "Callable[..., Any] | Model | str"
pythonversion: 3.11.12djangoversion: 5.2.7mypyversion: 1.13.0django-stubsversion: 5.2.7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working