use typing.Self for custom queryset methods

This commit is contained in:
thomas girod committed 2024-09-02 01:03:46 +02:00
1 parent d04b4c77c6
commit 6962b39fc9
3 files changed
+7 -7

No files matched your search

-1
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))