79296904

Date: 2024-12-20 10:34:37
Score: 1
Natty:
Report link

You will have to explicitly provide type hints.

# views.py
class ListCarsView(ListAPIView):
    def get_queryset(self):
        objects: CarQuerySet = Car.objects # Type hint
        return objects.with_wheels()  # yellow
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chaitanya Katti