use typing.Self for custom queryset methods

This commit is contained in:
thomas girod
2024-09-02 01:03:15 +02:00
parent d04b4c77c6
commit 6962b39fc9
3 changed files with 7 additions and 7 deletions

View File

@ -362,7 +362,6 @@ class CounterQuerySet(models.QuerySet):
```
"""
subquery = user.counters.filter(pk=OuterRef("pk"))
# noinspection PyTypeChecker
return self.annotate(has_annotated_barman=Exists(subquery))