(self)
| 104 | return EnvironmentSerializerWithMetadata |
| 105 | |
| 106 | def get_serializer_context(self): # type: ignore[no-untyped-def] |
| 107 | context = super(EnvironmentViewSet, self).get_serializer_context() |
| 108 | if self.kwargs.get("api_key"): |
| 109 | context["environment"] = self.get_object() |
| 110 | return context |
| 111 | |
| 112 | def get_queryset(self): # type: ignore[no-untyped-def] |
| 113 | if getattr(self, "swagger_fake_view", False): |
nothing calls this directly
no test coverage detected