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

django.template.utils.get_app_template_dirs return tuple missing type argument #2265

Closed
joshuadavidthomas opened this issue Jul 19, 2024 · 0 comments · Fixed by #2266
Closed
Labels
bug Something isn't working

Comments

@joshuadavidthomas
Copy link
Contributor

Bug report

What's wrong

get_app_template_dirs returns a tuple, but it's missing the type argument of the elements in the tuple:

def get_app_template_dirs(dirname: str) -> tuple: ...

How is that should be

Since commit 11b8c30, this function has returned a tuple containing Path elements.

def get_app_template_dirs(dirname: str) -> tuple[Path, ...]: ... 

System information

  • OS:
  • python version:
  • django version:
  • mypy version:
  • django-stubs version:
  • django-stubs-ext version:
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

Successfully merging a pull request may close this issue.

1 participant