Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type annotation for python 3.9 #651

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions api/schemas/project.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
from datetime import date

from pydantic import BaseModel
from typing import Optional


class Project(BaseModel):
id: str
activation: bool
init: date | None
end: date | None
invoice: float | None
estimated_hours: float | None
moved_hours: float | None
description: str | None
project_type: str | None
schedule_type: str | None
init: Optional[date]
end: Optional[date]
invoice: Optional[float]
estimated_hours: Optional[float]
moved_hours: Optional[float]
description: Optional[str]
project_type: Optional[str]
schedule_type: Optional[str]
customer_id: int
area_id: int

Expand Down