from typing import Union

from .classes import Class


class Period:
    def __init__(
        self,
        name: str,
        subject: str,
        class_id: str,
        year: str,
        teacher: str,
        room: str,
        substitute: "Union[str, None]" = None,
    ):
        self.name = name
        self.subject = subject
        self.class_id = class_id
        self.year = year
        self.teacher = teacher
        self.room = room
        self.substitute = substitute

    def get_class(self) -> Class:
        raise NotImplementedError

from typing import Union

from .classes import Class


class Period:
    def __init__(
        self,
        name: str,
        subject: str,
        class_id: str,
        year: str,
        teacher: str,
        room: str,
        substitute: "Union[str, None]" = None,
    ):
        self.name = name
        self.subject = subject
        self.class_id = class_id
        self.year = year
        self.teacher = teacher
        self.room = room
        self.substitute = substitute

    def get_class(self) -> Class:
        raise NotImplementedError
