Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
msathieu committed Mar 2, 2024
1 parent 8c1832a commit 04a20be
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions backend/domain/models/AdminDataclass.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from dataclasses import dataclass

from domain.models.UserDataclass import UserDataclass


@dataclass()
class AdminDataclass(UserDataclass):
pass
3 changes: 0 additions & 3 deletions backend/domain/models/GroupDataclass.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from dataclasses import dataclass

from pydantic import BaseModel


@dataclass()
class GroupDataclass(BaseModel):
id: int
project_id: int
2 changes: 0 additions & 2 deletions backend/domain/models/ProjectDataclass.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from dataclasses import dataclass
from datetime import datetime

from pydantic import BaseModel, PositiveInt


@dataclass()
class ProjectDataclass(BaseModel):
id: int
name: str
Expand Down
3 changes: 0 additions & 3 deletions backend/domain/models/StudentDataclass.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from dataclasses import dataclass

from domain.models.UserDataclass import UserDataclass


@dataclass()
class StudentDataclass(UserDataclass):
pass
3 changes: 0 additions & 3 deletions backend/domain/models/SubjectDataclass.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from dataclasses import dataclass

from pydantic import BaseModel


@dataclass()
class SubjectDataclass(BaseModel):
id: int
name: str
2 changes: 0 additions & 2 deletions backend/domain/models/SubmissionDataclass.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import enum
from dataclasses import dataclass
from datetime import datetime

from pydantic import BaseModel
Expand All @@ -11,7 +10,6 @@ class SubmissionState(enum.Enum):
Rejected = 3


@dataclass()
class SubmissionDataclass(BaseModel):
id: int
date_time: datetime
Expand Down
3 changes: 0 additions & 3 deletions backend/domain/models/TeacherDataclass.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from dataclasses import dataclass

from domain.models.UserDataclass import UserDataclass


@dataclass()
class TeacherDataclass(UserDataclass):
pass
3 changes: 0 additions & 3 deletions backend/domain/models/UserDataclass.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from dataclasses import dataclass

from pydantic import BaseModel, EmailStr


@dataclass()
class UserDataclass(BaseModel):
id: int
name: str
Expand Down

0 comments on commit 04a20be

Please sign in to comment.