<filename>parsing/domain/non_terminal.py
from parsing.domain.symbol import Symbol
from parsing.domain.symbol_type import SymbolType


class NonTerminal(Symbol):

    def __init__(self, value: str):
        super().__init__(value)

    @property
    def type(self):
        return SymbolType.NON_TERMINAL

    def __eq__(self, ot):
        return self._value == ot._value

<filename>parsing/domain/non_terminal.py
from parsing.domain.symbol import Symbol
from parsing.domain.symbol_type import SymbolType


class NonTerminal(Symbol):

    def __init__(self, value: str):
        super().__init__(value)

    @property
    def type(self):
        return SymbolType.NON_TERMINAL

    def __eq__(self, ot):
        return self._value == ot._value
