Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format_lazy() should return _StrPromise #2417

Open
dtsarapkin opened this issue Oct 23, 2024 · 3 comments
Open

format_lazy() should return _StrPromise #2417

dtsarapkin opened this issue Oct 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dtsarapkin
Copy link

Bug report

Now:
format_lazy: Callable[..., str]

I think it should be like other lazy methods - _StrPromise from django.utils.functional:
format_lazy: Callable[..., _StrPromise]

System information

  • django-stubs version: 5.1.0
  • django-stubs-ext version: 5.1.0
@dtsarapkin dtsarapkin added the bug Something isn't working label Oct 23, 2024
@ashm-dev
Copy link
Contributor

Can I fix this bug?

@dtsarapkin
Copy link
Author

Can I fix this bug?

If that question is for me, then probably yes.

@sobolevn
Copy link
Member

sobolevn commented Nov 1, 2024

Yes, PRs welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants