mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-05-30 02:15:25 +00:00
Chore(mypy): Annotate None returns for typing improvements (#11213)
This commit is contained in:
committed by
GitHub
parent
a9c0b06e28
commit
3b5ffbf9fa
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user