mirror of
https://github.com/ae-utbm/sith.git
synced 2026-07-17 03:58:35 +00:00
adapt typescript to strict mode
This commit is contained in:
+3
-3
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Literal
|
||||
from typing import Literal
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import ValidationError
|
||||
@@ -20,7 +20,7 @@ from api.permissions import (
|
||||
IsRoot,
|
||||
)
|
||||
from core.models import Notification, User
|
||||
from core.schemas import UploadedImage
|
||||
from core.schemas import UploadedImage, ValidationErrorSchema
|
||||
from sas.models import Album, PeoplePictureRelation, Picture
|
||||
from sas.schemas import (
|
||||
AlbumAutocompleteSchema,
|
||||
@@ -106,7 +106,7 @@ class PicturesController(ControllerBase):
|
||||
response={
|
||||
200: None,
|
||||
409: dict[Literal["detail"], dict[str, list[str]]],
|
||||
422: dict[Literal["detail"], list[dict[str, Any]]],
|
||||
422: ValidationErrorSchema,
|
||||
},
|
||||
url_name="upload_picture",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user