Skip to content

Commit

Permalink
Added new type hints in LessonEntry class
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeusina committed Aug 19, 2023
1 parent e652e97 commit 9631902
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions petersbugredu_wrap/types/lesson_entry.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import datetime

from petersbugredu_wrap.types import ActionPayload
from petersbugredu_wrap.types.estimate import Estimate
from petersbugredu_wrap.types.identity import Identity
from petersbugredu_wrap.types.task import Task


class LessonEntry:
def __init__(self, identity: Identity, number: int, datetime_from: str, datetime_to: str, subject_id: int,
subject_name: str, content_name: str, content_description, content_additional_material,
tasks: list[Task], estimates: list, action_payload):
def __init__(self, identity: Identity, number: int, datetime_from: datetime.datetime,
datetime_to: datetime.datetime, subject_id: int,subject_name: str, content_name: str,
content_description, content_additional_material, tasks: list[Task], estimates: list[Estimate],
action_payload: ActionPayload):
"""
Class represents lesson entry in API
:param identity:
Expand Down Expand Up @@ -34,4 +39,3 @@ def __init__(self, identity: Identity, number: int, datetime_from: str, datetime
self.datetime_from = datetime_from
self.number = number
self.identity = identity
raise NotImplementedError

0 comments on commit 9631902

Please sign in to comment.