Chore(mypy): Annotate None returns for typing improvements (#11213)

This commit is contained in:
Sebastian Steinbeißer
2026-02-02 17:44:12 +01:00
committed by GitHub
parent a9c0b06e28
commit 3b5ffbf9fa
113 changed files with 1598 additions and 1510 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ from rest_framework.test import APITestCase
class TestApiSchema(APITestCase):
ENDPOINT = "/api/schema/"
def test_valid_schema(self):
def test_valid_schema(self) -> None:
"""
Test that the schema is valid
"""
@@ -16,7 +16,7 @@ class TestApiSchema(APITestCase):
except CommandError as e:
self.fail(f"Schema validation failed: {e}")
def test_get_schema_endpoints(self):
def test_get_schema_endpoints(self) -> None:
"""
Test that the schema endpoints exist and return a 200 status code
"""