13 lines
218 B
Python
13 lines
218 B
Python
|
from abc import ABC, abstractmethod
|
||
|
|
||
|
|
||
|
class Parser(ABC):
|
||
|
"""
|
||
|
Base class for parsers.
|
||
|
"""
|
||
|
|
||
|
@classmethod
|
||
|
@abstractmethod
|
||
|
def parse(cls, docstring: str) -> str:
|
||
|
raise NotImplementedError()
|