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

SearchHeadline in django.contrib.postgres.search missing definition #929

Closed
nbhargava opened this issue Apr 20, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@nbhargava
Copy link

Bug report

What's wrong

SearchHeadline is defined in django.contrib.postgres.search, but it seems to be missing from the stubs. It seems like virtually all other stubs for this file hav ebeen provided.

Failing test case:

from django.contrib.postgres.search import SearchHeadline

How is that should be

The stub should roughly match the contents that are here: https://github.com/django/django/blob/main/django/contrib/postgres/search.py#L267

System information

  • OS:
  • python version: 3.10.2
  • django version: 4.0.3
  • mypy version: 0.942
  • django-stubs version: 1.10.1
  • django-stubs-ext version: 0.4.0
@nbhargava nbhargava added the bug Something isn't working label Apr 20, 2022
@vin-ai
Copy link

vin-ai commented Jun 1, 2022

+1 Same here. I found this error too

  • OS: WSL2
  • python version: 3.8.10
  • django version: 3.2.13
  • mypy version: 0.950
  • django-stubs version: 1.11.1
  • django-stubs-ext version: 0.4.0

@nbhargava
Copy link
Author

This was fixed by #909 and seems to be present in the latest release.

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

2 participants