
from .GrammpyException import GrammpyException


class NotNonterminalException(GrammpyException):
    pass

from typing import Any

from .GrammpyException import GrammpyException


class NotNonterminalException(GrammpyException):
    def __init__(self, parameter, *args: Any) -> None:
        super().__init__(*args)
        self.object = parameter

Implement NotNonterminalEception __init__ method and pass object
Implement NotNonterminalEception __init__ method and pass object

+ from typing import Any
  
  from .GrammpyException import GrammpyException
  
  
  class NotNonterminalException(GrammpyException):
-     pass
+     def __init__(self, parameter, *args: Any) -> None:
+         super().__init__(*args)
+         self.object = parameter
  
Implement NotNonterminalEception __init__ method and pass object
## Code Before:

from .GrammpyException import GrammpyException


class NotNonterminalException(GrammpyException):
    pass

## Instruction:
Implement NotNonterminalEception __init__ method and pass object
## Code After:
from typing import Any

from .GrammpyException import GrammpyException


class NotNonterminalException(GrammpyException):
    def __init__(self, parameter, *args: Any) -> None:
        super().__init__(*args)
        self.object = parameter
